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,
879,
742,
3048,
100023,
9374,
15221,
10490,
3548,
29,
12974,
9470,
27499,
11,
2958,
9284,
11,
2777,
4232,
49403,
8,
3872,
96749,
20912,
1378,
341,
286,
369,
320,
707,
12974,
86678,
551,
12974,
9470,
27499,
8,
341,
310,
3048,
100023,
17344,
35690,
2757,
86678,
11,
9284,
11,
4232,
49403,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
12379,
264,
1160,
315,
20797,
311,
264,
3230,
8695,
382,
36913,
12974,
9470,
27499,
257,
362,
1160,
315,
36136,
198,
36913,
9284,
692,
362,
9284,
8695,
311,
3048,
1521,
36136,
311,
198,
36913,
4232,
49403,
3234,
584,
4232,
20113,
198,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
12379,
264,
1160,
315,
20797,
311,
264,
3230,
8695,
382,
36913,
12974,
9470,
27499,
257,
362,
1160,
315,
36136,
198,
36913,
9284,
692,
362,
9284,
8695,
311,
3048,
1521,
36136,
311,
198,
36913,
4232,
49403,
3234,
584,
4232,
20113,
198,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private void copyExplicitLibraries(List<String> desiredArtifacts, File destination, boolean downloadDependencies) throws MojoExecutionException {
for (String desiredArtifact : desiredArtifacts) {
copyExplicitLibrary(desiredArtifact, destination, downloadDependencies);
}
}
Documentation: | Copy a list of libraries to a specific folder.
@param desiredArtifacts A list of artifacts
@param destination A destination folder to copy these artifacts to
@param downloadDependencies Do we download dependencies
@throws MojoExecutionException MojoExecutionException |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
87182,
636,
86678,
2122,
83584,
21417,
12974,
86678,
8,
3872,
96749,
20912,
1378,
17595,
5782,
2770,
946,
198,
286,
87182,
1939,
37739,
1939,
284,
502,
87182,
1939,
545,
286,
37739,
1939,
995,
86678,
35690,
2757,
86678,
317,
286,
37739,
1939,
995,
45914,
51405,
861,
317,
286,
1456,
341,
310,
471,
12827,
2374,
15033,
86678,
51405,
2374,
5396,
11,
37739,
1939,
570,
456,
86678,
545,
286,
335,
2339,
320,
86678,
39206,
1378,
384,
8,
341,
310,
2571,
502,
96749,
20912,
1378,
2069,
13012,
1535,
384,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
10086,
264,
3230,
37739,
304,
264,
8870,
12827,
271,
36913,
12974,
86678,
578,
37739,
430,
584,
1390,
311,
1505,
198,
66103,
4946,
471,
459,
87182,
2122,
1665,
198,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10086,
264,
3230,
37739,
304,
264,
8870,
12827,
271,
36913,
12974,
86678,
578,
37739,
430,
584,
1390,
311,
1505,
198,
66103,
4946,
471,
459,
87182,
2122,
1665,
198,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private Artifact getArtifactResult(Artifact desiredArtifact) throws MojoExecutionException {// NOSONAR
ArtifactRequest artifactRequest = new ArtifactRequest();
artifactRequest.setArtifact(desiredArtifact);
artifactRequest.setRepositories(repositoryList);
try {
return repositorySystem.resolveArtifact(repositorySystemSession, artifactRequest).getArtifact();
} catch (ArtifactResolutionException e) {
throw new MojoExecutionException(e.getMessage(), e);
}
}
Documentation: | Find a specific artifact in a remote repository
@param desiredArtifact The artifact that we want to find
@return Will return an ArtifactResult object
@throws MojoExecutionException MojoExecutionException |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
2777,
3048,
86678,
2746,
8327,
83584,
21417,
37739,
1271,
12379,
11,
8092,
9284,
9494,
8,
3872,
96749,
20912,
1378,
341,
286,
369,
320,
707,
12305,
86678,
551,
12305,
9470,
27499,
8,
341,
310,
87182,
37739,
1271,
12780,
284,
636,
86678,
2122,
1792,
8058,
86678,
7,
59571,
86678,
1125,
310,
422,
320,
64822,
1271,
12379,
57833,
1020,
14197,
1020,
7324,
7,
64822,
1271,
12780,
57833,
1020,
14197,
10340,
341,
394,
636,
2250,
1020,
8514,
7,
64822,
1271,
12379,
57833,
1020,
14197,
368,
489,
330,
706,
539,
1027,
22523,
927,
1606,
433,
374,
304,
279,
10240,
1160,
7470,
394,
471,
905,
280,
310,
457,
286,
457,
286,
1456,
341,
310,
369,
320,
12217,
27,
86678,
29,
15441,
284,
22523,
9470,
27499,
30083,
2178,
15441,
23652,
2178,
883,
341,
394,
87182,
2736,
57377,
1142,
86678,
284,
15441,
4630,
545,
394,
422,
320,
472,
27499,
11787,
65530,
4266,
18109,
2359,
57377,
1142,
86678,
11,
37739,
1271,
12379,
595,
341,
504,
422,
320,
285,
86678,
3957,
18788,
261,
27159,
86678,
18109,
2359,
57377,
1142,
86678,
11,
37739,
1271,
12379,
595,
341,
667,
8092,
37739,
65205,
284,
56706,
673,
49176,
9494,
5180,
1535,
2736,
57377,
1142,
86678,
57833,
1020,
14197,
1449,
667,
636,
2250,
1020,
8514,
2292,
8180,
446,
61575,
1052,
4989,
4,
82,
23612,
37739,
65205,
1125,
667,
443,
1226,
3783,
279,
2362,
37739,
323,
4148,
433,
505,
279,
1160,
315,
22523,
36136,
11,
279,
502,
37739,
690,
387,
22523,
3770,
198,
667,
17833,
7592,
41332,
7,
64822,
65205,
317,
667,
15441,
4955,
545,
667,
1464,
280,
504,
335,
775,
341,
667,
471,
905,
280,
504,
457,
394,
457,
310,
457,
310,
8092,
12974,
86678,
284,
56706,
673,
49176,
9494,
5180,
1535,
37739,
1271,
12379,
57833,
1020,
14197,
1449,
310,
422,
1533,
83882,
86678,
2446,
1738,
1020,
16703,
2189,
341,
394,
636,
2250,
1020,
8514,
2292,
8180,
446,
87612,
25,
1034,
82,
311,
1034,
82,
498,
12974,
86678,
5180,
1535,
9284,
9494,
5180,
7544,
394,
17833,
12511,
7,
27999,
673,
7,
64822,
1271,
12379,
57833,
1020,
456,
40311,
12122,
12974,
86678,
317,
310,
457,
286,
335,
2339,
320,
15402,
765,
14204,
5755,
57239,
1378,
384,
8,
341,
310,
2571,
502,
96749,
20912,
1378,
2069,
13012,
1535,
384,
317,
286,
457,
286,
22523,
9470,
27499,
1388,
7,
64822,
1271,
12379,
629,
286,
471,
837,
280,
262,
457,
65434,
25,
128001,
128000,
12379,
459,
87182,
311,
264,
6352,
271,
36913,
37739,
1271,
12379,
996,
87182,
430,
3966,
311,
387,
22523,
627,
36913,
9284,
9494,
18524,
311,
3048,
279,
37739,
311,
198,
66103,
837,
422,
37739,
22523,
11,
905,
422,
37739,
539,
22523,
198,
31,
8262,
96749,
20912,
1378,
42544,
311,
3048,
1052,
477,
9006,
24999,
11,
477,
12153,
311,
1505,
37739,
477,
12153,
311,
4820,
87182,
2373
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
12379,
459,
87182,
311,
264,
6352,
271,
36913,
37739,
1271,
12379,
996,
87182,
430,
3966,
311,
387,
22523,
627,
36913,
9284,
9494,
18524,
311,
3048,
279,
37739,
311,
198,
66103,
837,
422,
37739,
22523,
11,
905,
422,
37739,
539,
22523,
198,
31,
8262,
96749,
20912,
1378,
42544,
311,
3048,
1052,
477,
9006,
24999,
11,
477,
12153,
311,
1505,
37739,
477,
12153,
311,
4820,
87182,
2373,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private boolean copyArtifactIfRequired(Artifact artifactToCopy, Path destinationDirectory) throws MojoExecutionException {
for (String ignoredArtifact : ignoredArtifacts) {
Artifact artifactToIgnore = getArtifactResult(new DefaultArtifact(ignoredArtifact));
if (artifactToCopy.getFile().getName().equals(artifactToIgnore.getFile().getName())) {
getLog().debug(artifactToCopy.getFile().getName() + " has not been copied over because it is in the ignore list.");
return false;
}
}
try {
for (Iterator<Artifact> iterator = copiedArtifacts.iterator(); iterator.hasNext(); ) {
Artifact alreadyCopiedArtifact = iterator.next();
if (artifactsAreMatchingTypes(alreadyCopiedArtifact, artifactToCopy)) {
if (isArtifactIsOlderThanArtifact(alreadyCopiedArtifact, artifactToCopy)) {
Path artifactToDelete = Paths.get(destinationDirectory.toString(), alreadyCopiedArtifact.getFile().getName());
getLog().debug(String.format("Deleting file:'%s'", artifactToDelete));
// We delete the old artifact and remove it from the list of copied artifacts, the new artifact will be copied below
Files.deleteIfExists(artifactToDelete);
iterator.remove();
break;
} else {
return false;
}
}
}
Path desiredArtifact = Paths.get(destinationDirectory.toString(), artifactToCopy.getFile().getName());
if (!desiredArtifact.toFile().exists()) {
getLog().debug(String.format("Copying: %s to %s", desiredArtifact.toString(), destinationDirectory.toString()));
Files.copy(Paths.get(artifactToCopy.getFile().getAbsolutePath()), desiredArtifact);
}
} catch (IOException | InvalidVersionSpecificationException e) {
throw new MojoExecutionException(e.getMessage(), e);
}
copiedArtifacts.add(artifactToCopy);
return true;
}
Documentation: | Copy an Artifact to a directory
@param artifactToCopy Artifact that needs to be copied.
@param destinationDirectory Directory to copy the artifact to
@return true if artifact copied, false if artifact not copied
@throws MojoExecutionException Unable to copy file or resolve dependency, or unable to find artifact or unable to parse Artifact version |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1796,
3548,
29,
1977,
19686,
1895,
368,
3872,
96749,
20912,
1378,
341,
286,
422,
1533,
14819,
861,
8962,
51420,
6169,
29364,
8,
1024,
758,
18502,
18700,
8,
341,
310,
2571,
502,
96749,
20912,
1378,
446,
2822,
1296,
1161,
8,
5300,
11390,
286,
457,
286,
1796,
3548,
29,
6105,
1895,
284,
502,
5166,
29489,
286,
369,
320,
41,
69324,
72985,
19686,
5811,
551,
5811,
861,
8,
341,
310,
3480,
320,
14819,
8,
341,
394,
1162,
452,
7691,
2327,
29364,
512,
504,
6105,
1895,
1388,
8368,
7691,
2327,
29364,
673,
72985,
9350,
1449,
504,
1464,
280,
394,
1162,
13916,
6169,
29364,
512,
504,
6105,
1895,
1388,
51420,
6169,
29364,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
8793,
1738,
317,
504,
1464,
280,
394,
1162,
8241,
6169,
29364,
512,
504,
6105,
1895,
1388,
25892,
6169,
29364,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
21118,
2250,
11143,
317,
504,
1464,
280,
394,
1162,
83152,
20856,
29566,
29364,
512,
504,
6105,
1895,
1388,
16772,
44,
20856,
29566,
29364,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
3406,
69324,
7778,
317,
504,
1464,
280,
394,
1162,
8241,
40977,
512,
504,
6105,
1895,
1388,
25892,
40977,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
7,
9380,
8605,
73776,
5180,
1449,
504,
1464,
280,
394,
1162,
43077,
6169,
17,
29364,
512,
504,
369,
320,
707,
2587,
8062,
1738,
551,
2587,
8062,
11043,
8,
341,
667,
6105,
1895,
1388,
5417,
19828,
6169,
17,
29364,
673,
72985,
9350,
1449,
667,
6105,
1895,
1388,
62401,
8062,
1738,
317,
504,
457,
504,
1464,
280,
394,
1162,
26669,
19707,
29364,
512,
504,
6105,
1895,
1388,
44302,
38628,
29364,
673,
72985,
9350,
1449,
504,
1464,
280,
394,
1162,
5421,
16760,
17656,
512,
504,
6105,
1895,
1388,
56781,
16760,
17656,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
66887,
7843,
100183,
1449,
504,
1464,
280,
394,
1162,
5421,
16760,
12658,
512,
504,
6105,
1895,
1388,
56781,
16760,
12658,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
66887,
7843,
99101,
1449,
504,
1464,
280,
394,
1162,
5421,
16760,
43796,
512,
504,
6105,
1895,
1388,
56781,
16760,
43796,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
66887,
7843,
54452,
1449,
504,
1464,
280,
394,
1162,
5421,
16760,
23928,
512,
504,
6105,
1895,
1388,
56781,
16760,
23928,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
66887,
7843,
53878,
1449,
504,
1464,
280,
394,
1162,
21219,
9295,
16760,
17656,
50,
512,
504,
6105,
1895,
1388,
8368,
715,
9295,
16760,
17656,
50,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
66887,
7843,
100183,
849,
24436,
1449,
504,
1464,
280,
394,
1162,
26669,
19707,
32668,
512,
504,
6105,
1895,
1388,
44302,
38628,
32668,
673,
72985,
9350,
1449,
504,
1464,
280,
394,
1162,
26669,
19707,
29364,
12344,
512,
504,
6105,
1895,
1388,
44302,
38628,
29364,
12344,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
62481,
3563,
5592,
861,
317,
504,
1464,
280,
394,
1162,
83152,
7391,
6169,
29364,
512,
504,
6105,
1895,
1388,
16772,
44,
7391,
6169,
29364,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
3406,
60522,
2250,
11143,
317,
504,
1464,
280,
394,
1162,
45176,
8837,
11137,
29364,
512,
504,
6105,
1895,
1388,
44302,
5205,
8837,
11137,
29364,
673,
72985,
9350,
1449,
504,
1464,
280,
394,
1162,
45176,
24935,
34737,
29364,
512,
504,
6105,
1895,
1388,
44302,
5205,
24935,
34737,
29364,
673,
72985,
9350,
1449,
504,
6105,
1895,
1388,
46275,
9494,
317,
504,
1464,
280,
394,
1162,
40764,
29364,
512,
504,
6105,
1895,
1388,
3844,
8583,
29364,
673,
72985,
9350,
1449,
504,
1464,
280,
394,
1162,
35852,
33939,
6169,
512,
394,
1162,
83152,
20856,
27112,
512,
394,
1162,
83152,
20856,
37861,
33939,
512,
394,
1162,
35852,
27112,
512,
394,
1162,
34892,
29364,
512,
394,
1162,
43077,
6169,
29364,
512,
394,
1162,
45176,
19211,
34657,
29364,
512,
394,
1162,
56571,
29364,
512,
504,
443,
96639,
2671,
11,
814,
690,
387,
12305,
198,
504,
1464,
280,
310,
457,
286,
457,
286,
471,
6105,
1895,
280,
262,
457,
65434,
25,
128001,
128000,
32215,
459,
6105,
1358,
14393,
279,
3290,
1584,
2671,
499,
1390,
311,
3708,
311,
622,
69324,
627,
791,
2015,
315,
279,
1358,
374,
11075,
555,
279,
2015,
279,
2819,
304,
622,
69324,
72985,
19686,
527,
4613,
382,
66103,
1556,
1358,
14393,
279,
3290,
1584,
3288,
311,
622,
69324,
198,
31,
8262,
96749,
20912,
1378,
4204
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
459,
6105,
1358,
14393,
279,
3290,
1584,
2671,
499,
1390,
311,
3708,
311,
622,
69324,
627,
791,
2015,
315,
279,
1358,
374,
11075,
555,
279,
2015,
279,
2819,
304,
622,
69324,
72985,
19686,
527,
4613,
382,
66103,
1556,
1358,
14393,
279,
3290,
1584,
3288,
311,
622,
69324,
198,
31,
8262,
96749,
20912,
1378,
4204,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public List<String> buildArgumentsArray() throws MojoExecutionException {
if (!argumentList.contains(TESTFILE_OPT) && !disableTests) {
throw new MojoExecutionException("No test(s) specified!");
}
List<String> argumentsArray = new ArrayList<>();
for (JMeterCommandLineArguments argument : argumentList) {
switch (argument) {
case NONGUI_OPT:
argumentsArray.add(NONGUI_OPT.getCommandLineArgument());
break;
case TESTFILE_OPT:
argumentsArray.add(TESTFILE_OPT.getCommandLineArgument());
argumentsArray.add(testFile);
break;
case LOGFILE_OPT:
argumentsArray.add(LOGFILE_OPT.getCommandLineArgument());
argumentsArray.add(resultsLogFileName);
break;
case JMETER_HOME_OPT:
argumentsArray.add(JMETER_HOME_OPT.getCommandLineArgument());
argumentsArray.add(jMeterHome);
break;
case LOGLEVEL:
argumentsArray.add(LOGLEVEL.getCommandLineArgument());
argumentsArray.add(overrideRootLogLevel.toString());
break;
case PROPFILE2_OPT:
for (String customPropertiesFile : customPropertiesFiles) {
argumentsArray.add(PROPFILE2_OPT.getCommandLineArgument());
argumentsArray.add(customPropertiesFile);
}
break;
case REMOTE_OPT:
argumentsArray.add(REMOTE_OPT.getCommandLineArgument());
break;
case PROXY_HOST:
argumentsArray.add(PROXY_HOST.getCommandLineArgument());
argumentsArray.add(proxyConfiguration.getHost());
break;
case PROXY_PORT:
argumentsArray.add(PROXY_PORT.getCommandLineArgument());
argumentsArray.add(proxyConfiguration.getPort());
break;
case PROXY_USERNAME:
argumentsArray.add(PROXY_USERNAME.getCommandLineArgument());
argumentsArray.add(proxyConfiguration.getUsername());
break;
case PROXY_PASSWORD:
argumentsArray.add(PROXY_PASSWORD.getCommandLineArgument());
argumentsArray.add(proxyConfiguration.getPassword());
break;
case NONPROXY_HOSTS:
argumentsArray.add(NONPROXY_HOSTS.getCommandLineArgument());
argumentsArray.add(proxyConfiguration.getHostExclusions());
break;
case REMOTE_STOP:
argumentsArray.add(REMOTE_STOP.getCommandLineArgument());
break;
case REMOTE_OPT_PARAM:
argumentsArray.add(REMOTE_OPT_PARAM.getCommandLineArgument());
argumentsArray.add(remoteStartServerList);
break;
case JMLOGFILE_OPT:
argumentsArray.add(JMLOGFILE_OPT.getCommandLineArgument());
argumentsArray.add(jmeterLogFileName);
break;
case REPORT_AT_END_OPT:
argumentsArray.add(REPORT_AT_END_OPT.getCommandLineArgument());
break;
case REPORT_OUTPUT_FOLDER_OPT:
argumentsArray.add(REPORT_OUTPUT_FOLDER_OPT.getCommandLineArgument());
argumentsArray.add(reportDirectory);
break;
case SERVER_OPT:
argumentsArray.add(SERVER_OPT.getCommandLineArgument());
break;
case SYSTEM_PROPFILE:
case JMETER_PROPERTY:
case JMETER_GLOBAL_PROP:
case SYSTEM_PROPERTY:
case VERSION_OPT:
case PROPFILE_OPT:
case REPORT_GENERATING_OPT:
case HELP_OPT:
//Unhandled options, they will be ignored
break;
}
}
return argumentsArray;
}
Documentation: | Generate an arguments array representing the command line options you want to send to JMeter.
The order of the array is determined by the order the values in JMeterCommandLineArguments are defined.
@return An array representing the command line sent to JMeter
@throws MojoExecutionException Exception |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
571,
2226,
198,
262,
586,
742,
656,
17617,
368,
3872,
96749,
20912,
1378,
341,
286,
636,
2250,
1020,
2801,
446,
7468,
286,
636,
2250,
1020,
2801,
5063,
4069,
33343,
317,
286,
636,
2250,
1020,
2801,
446,
328,
350,
362,
432,
350,
358,
452,
480,
262,
622,
386,
469,
350,
469,
432,
262,
328,
469,
432,
650,
469,
432,
7468,
286,
636,
2250,
1020,
2801,
5063,
4069,
33343,
317,
286,
636,
2250,
1020,
2801,
2292,
8180,
446,
16492,
25,
1034,
82,
498,
35990,
49,
8318,
89939,
1125,
286,
636,
2250,
1020,
2801,
2292,
8180,
446,
5896,
25,
1034,
82,
498,
3622,
7229,
1125,
286,
1212,
41,
69324,
5592,
35431,
553,
41,
69324,
19686,
1895,
1449,
262,
457,
65434,
25,
128001,
128000,
6003,
279,
622,
69324,
3622,
271,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
6003,
279,
622,
69324,
3622,
271,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: @Override
public void doExecute() throws MojoExecutionException {
getLog().info(" ");
getLog().info(LINE_SEPARATOR);
getLog().info(" S T A R T I N G J M E T E R S E R V E R ");
getLog().info(LINE_SEPARATOR);
getLog().info(String.format(" Host: %s", exportedRmiHostname));
getLog().info(String.format(" Port: %s", serverPort));
startJMeterServer(initializeJMeterArgumentsArray());
}
Documentation: | Load the JMeter server
@throws MojoExecutionException MojoExecutionException |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
571,
2226,
198,
262,
586,
742,
656,
17617,
368,
3872,
96749,
20912,
1378,
341,
286,
636,
2250,
1020,
2801,
446,
7468,
286,
636,
2250,
1020,
2801,
5063,
4069,
33343,
317,
286,
636,
2250,
1020,
2801,
446,
393,
469,
432,
435,
507,
432,
386,
362,
452,
356,
469,
262,
350,
469,
328,
350,
328,
803,
286,
636,
2250,
1020,
2801,
5063,
4069,
33343,
317,
286,
636,
2250,
1020,
2801,
446,
40987,
286,
422,
1533,
1985,
11043,
9494,
12347,
2189,
341,
310,
636,
2250,
1020,
2801,
9836,
1985,
11043,
9494,
10078,
489,
1296,
11043,
9494,
54054,
368,
489,
9169,
1985,
11043,
9494,
29,
1587,
539,
3073,
27118,
310,
636,
2250,
1020,
2801,
446,
35891,
7177,
36257,
11390,
310,
636,
2250,
1020,
2801,
446,
7468,
310,
471,
280,
286,
557,
286,
3475,
2714,
1296,
2714,
284,
502,
3475,
2714,
1792,
2958,
8793,
2714,
1738,
1125,
286,
622,
69324,
7843,
8757,
6683,
284,
622,
69324,
7843,
8757,
9747,
545,
286,
8870,
2714,
995,
8062,
2276,
49824,
91902,
2276,
1449,
286,
503,
69324,
7575,
41,
11435,
6214,
995,
12626,
1752,
3760,
2746,
8327,
545,
286,
3048,
11043,
644,
2323,
9494,
8793,
11043,
9494,
11,
1296,
11043,
11313,
9494,
317,
286,
3475,
2087,
503,
69324,
2323,
2087,
284,
502,
3475,
2087,
746,
394,
662,
751,
4066,
2323,
4209,
14426,
8660,
41,
69324,
19686,
1895,
3800,
11,
1296,
2714,
673,
10001,
5207,
3957,
45309,
4152,
12419,
394,
662,
751,
2323,
11043,
9494,
8793,
11043,
11313,
9494,
340,
394,
662,
751,
2323,
11043,
85710,
8793,
11043,
85710,
340,
394,
662,
751,
2323,
11043,
849,
10391,
8793,
11043,
849,
10391,
340,
394,
662,
751,
25732,
5592,
7843,
62481,
2714,
340,
394,
662,
751,
18138,
41,
69324,
5207,
1161,
455,
1911,
41,
69324,
5207,
340,
394,
662,
751,
29894,
6315,
49824,
673,
35078,
9494,
2455,
394,
662,
751,
41,
69324,
7575,
41,
11435,
6214,
3406,
69324,
7575,
41,
11435,
6214,
340,
394,
662,
751,
15474,
72835,
678,
49824,
93715,
72835,
678,
2455,
394,
662,
751,
10577,
9494,
46275,
9494,
340,
394,
662,
751,
32215,
24682,
3348,
13523,
24682,
340,
394,
662,
751,
4226,
2323,
29491,
97336,
20203,
2323,
29491,
97336,
317,
286,
422,
320,
23648,
2714,
976,
854,
8,
341,
310,
636,
2250,
1020,
2801,
1420,
42203,
2714,
5180,
1449,
286,
557,
286,
1296,
2714,
995,
10001,
1738,
44137,
3406,
69324,
2323,
2087,
7925,
18700,
1449,
286,
1296,
2714,
3921,
2122,
11043,
2714,
1271,
8793,
2714,
1738,
317,
262,
457,
65434,
25,
128001,
128000,
6869,
682,
279,
622,
69324,
7177,
382,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
6869,
682,
279,
622,
69324,
7177,
382,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: @Override
public void doExecute() throws MojoExecutionException {
getLog().info(" ");
getLog().info(LINE_SEPARATOR);
getLog().info(" P E R F O R M A N C E T E S T S");
getLog().info(LINE_SEPARATOR);
getLog().info(" ");
if (!testFilesDirectory.exists()) {
getLog().info("<testFilesDirectory>" + testFilesDirectory.getAbsolutePath() + "</testFilesDirectory> does not exist...");
getLog().info("Performance tests skipped!");
getLog().info(" ");
return;
}
TestConfig testConfig = new TestConfig(new File(testConfigFile));
JMeterConfigurationHolder configuration = JMeterConfigurationHolder.getInstance();
remoteConfig.setPropertiesMap(configuration.getPropertiesMap());
jMeterProcessJVMSettings.setHeadlessDefaultIfRequired();
copyFilesInTestDirectory(testFilesDirectory, testFilesBuildDirectory);
TestManager jMeterTestManager = new TestManager()
.setBaseTestArgs(computeJMeterArgumentsArray(true, testConfig.getResultsOutputIsCSVFormat()))
.setTestFilesDirectory(testFilesBuildDirectory)
.setTestFilesIncluded(testFilesIncluded)
.setTestFilesExcluded(testFilesExcluded)
.setRemoteServerConfiguration(remoteConfig)
.setSuppressJMeterOutput(suppressJMeterOutput)
.setBinDir(configuration.getWorkingDirectory())
.setJMeterProcessJVMSettings(jMeterProcessJVMSettings)
.setRuntimeJarName(configuration.getRuntimeJarName())
.setReportDirectory(reportDirectory)
.setGenerateReports(generateReports)
.setPostTestPauseInSeconds(postTestPauseInSeconds);
if (proxyConfig != null) {
getLog().info(this.proxyConfig.toString());
}
testConfig.setResultsFileLocations(jMeterTestManager.executeTests());
testConfig.writeResultFilesConfigTo(testConfigFile);
}
Documentation: | Run all the JMeter tests.
@throws MojoExecutionException MojoExecutionException |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
2682,
622,
69324,
19686,
1895,
12849,
41,
69324,
19686,
1895,
20074,
11404,
20844,
11,
2777,
374,
45309,
4152,
8,
3872,
96749,
20912,
1378,
341,
286,
622,
69324,
19686,
1895,
1296,
4209,
284,
502,
622,
69324,
19686,
1895,
16765,
481,
20844,
11,
503,
60522,
9494,
54054,
2455,
394,
662,
751,
10001,
9494,
21118,
9494,
54054,
2455,
394,
662,
751,
2122,
1738,
5207,
4152,
3957,
45309,
9820,
45309,
4152,
340,
394,
662,
751,
16617,
2714,
66887,
2714,
340,
394,
662,
751,
2250,
8605,
2226,
7,
9380,
8605,
73776,
340,
394,
662,
751,
52153,
9494,
12814,
82,
9494,
54054,
2455,
394,
662,
723,
1741,
1476,
8062,
11043,
62401,
8062,
11043,
317,
286,
422,
320,
19927,
24682,
1024,
11404,
20844,
8,
341,
310,
1296,
4209,
995,
24682,
9494,
46275,
9494,
54054,
1449,
286,
457,
286,
422,
320,
1985,
10001,
21479,
8,
341,
310,
1296,
4209,
995,
10001,
21479,
3800,
340,
504,
662,
5200,
21479,
7,
5200,
10001,
21479,
340,
504,
662,
751,
10001,
11143,
17022,
21118,
11143,
17022,
317,
286,
557,
286,
471,
1296,
4209,
280,
262,
457,
65434,
25,
128001,
128000,
32215,
279,
2926,
622,
69324,
28802,
1358,
430,
374,
1511,
311,
1893,
279,
3290,
1584,
430,
584,
1522,
311,
622,
69324,
382,
31,
8262,
96749,
20912,
1378
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
32215,
279,
2926,
622,
69324,
28802,
1358,
430,
374,
1511,
311,
1893,
279,
3290,
1584,
430,
584,
1522,
311,
622,
69324,
382,
31,
8262,
96749,
20912,
1378,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: protected JMeterArgumentsArray computeJMeterArgumentsArray(boolean disableGUI, boolean isCSVFormat) throws MojoExecutionException {
JMeterArgumentsArray testArgs = new JMeterArgumentsArray(disableGUI, jmeterDirectory.getAbsolutePath())
.setResultsDirectory(resultsDirectory.getAbsolutePath())
.setResultFileOutputFormatIsCSV(isCSVFormat)
.setProxyConfig(proxyConfig)
.setLogRootOverride(overrideRootLogLevel)
.setLogsDirectory(logsDirectory.getAbsolutePath())
.addACustomPropertiesFiles(customPropertiesFiles);
if (generateReports && disableGUI) {
testArgs.setReportsDirectory(reportDirectory.getAbsolutePath());
}
if (testResultsTimestamp) {
testArgs.setResultsTimestamp(true)
.appendTimestamp(appendResultsTimestamp)
.setResultsFileNameDateFormat(resultsFileNameDateFormat);
}
return testArgs;
}
Documentation: | Generate the initial JMeter Arguments array that is used to create the command line that we pass to JMeter.
@throws MojoExecutionException |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
2682,
742,
2865,
44,
5389,
16617,
368,
341,
286,
422,
320,
2994,
624,
5110,
8,
341,
310,
471,
280,
286,
557,
286,
33878,
24039,
77,
16617,
284,
5110,
84835,
16617,
545,
286,
422,
320,
27093,
77,
16617,
976,
854,
8,
341,
310,
33878,
7843,
502,
16617,
7843,
284,
502,
33878,
7843,
545,
310,
502,
16617,
7843,
995,
9480,
1278,
29238,
16617,
100183,
1449,
310,
502,
16617,
7843,
995,
7229,
1278,
29238,
16617,
99101,
1449,
310,
502,
16617,
7843,
98082,
1278,
29238,
16617,
54452,
1449,
310,
502,
16617,
7843,
64911,
1278,
29238,
16617,
53878,
1449,
310,
502,
16617,
7843,
995,
9480,
849,
24436,
1278,
29238,
16617,
673,
8284,
16617,
9480,
82,
1449,
310,
13594,
2714,
284,
502,
16617,
7843,
280,
310,
636,
2250,
1020,
2801,
446,
44,
5389,
13594,
6799,
7946,
803,
286,
335,
775,
341,
310,
636,
2250,
1020,
34581,
446,
2822,
296,
5389,
13594,
1766,
11,
4869,
1005,
44,
5389,
16617,
374,
743,
311,
837,
11390,
286,
457,
262,
457,
65434,
25,
128001,
128000,
22170,
311,
2865,
279,
4642,
296,
5389,
13594,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
22170,
311,
2865,
279,
4642,
296,
5389,
13594,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: protected void loadMavenProxy() {
if (null == settings) {
return;
}
Proxy mvnProxy = settings.getActiveProxy();
if (mvnProxy != null) {
ProxyConfiguration newProxyConfiguration = new ProxyConfiguration();
newProxyConfiguration.setHost(mvnProxy.getHost());
newProxyConfiguration.setPort(mvnProxy.getPort());
newProxyConfiguration.setUsername(mvnProxy.getUsername());
newProxyConfiguration.setPassword(mvnProxy.getPassword());
newProxyConfiguration.setHostExclusions(mvnProxy.getNonProxyHosts());
proxyConfig = newProxyConfiguration;
getLog().info("Maven proxy loaded successfully");
} else {
getLog().warn("No maven proxy found, however useMavenProxy is set to true!");
}
}
Documentation: | Try to load the active maven proxy. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
935,
3823,
59038,
72985,
5207,
10490,
3548,
29,
6105,
8,
341,
286,
443,
15074,
19874,
18054,
420,
11,
1193,
1511,
304,
7177,
198,
286,
11664,
7542,
5207,
284,
502,
11664,
545,
286,
369,
320,
707,
5811,
551,
6105,
8,
341,
310,
7542,
5207,
2102,
69585,
570,
5200,
446,
7468,
286,
457,
286,
471,
7542,
5207,
5180,
1020,
10893,
545,
262,
457,
65434,
25,
128001,
128000,
11313,
264,
3823,
34898,
3290,
1584,
505,
279,
6105,
743,
555,
279,
9183,
271,
36913,
6105,
2982,
315,
935,
198,
66103,
935
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
11313,
264,
3823,
34898,
3290,
1584,
505,
279,
6105,
743,
555,
279,
9183,
271,
36913,
6105,
2982,
315,
935,
198,
66103,
935,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static String humanReadableCommandLineOutput(List<String> arguments) {
//TODO investigate removing this, only used in tests
StringBuilder debugOutput = new StringBuilder();
for (String argument : arguments) {
debugOutput.append(argument).append(" ");
}
return debugOutput.toString().trim();
}
Documentation: | Build a human readable command line from the arguments set by the plugin
@param arguments Array of String
@return String |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
7137,
374,
2688,
1681,
2292,
907,
8,
341,
286,
471,
854,
624,
907,
1393,
907,
9389,
368,
1393,
907,
16824,
1020,
4222,
368,
624,
220,
15,
280,
262,
457,
65434,
25,
128001,
128000,
19750,
734,
311,
1817,
422,
264,
935,
374,
4613,
323,
539,
4384,
271,
36913,
907,
935,
198,
66103,
2777
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19750,
734,
311,
1817,
422,
264,
935,
374,
4613,
323,
539,
4384,
271,
36913,
907,
935,
198,
66103,
2777,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static Boolean isNotSet(String value) {
return null == value || value.isEmpty() || value.trim().length() == 0;
}
Documentation: | Utility function to check if a String is defined and not empty
@param value String
@return boolean |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
7137,
374,
2688,
1681,
20408,
907,
8,
341,
286,
471,
854,
624,
907,
1393,
907,
5180,
1020,
19509,
368,
1393,
907,
5180,
1020,
10893,
1020,
4222,
368,
624,
220,
15,
280,
262,
457,
65434,
25,
128001,
128000,
19750,
734,
311,
1817,
422,
2958,
374,
4613,
323,
539,
4384,
271,
36913,
907,
2958,
198,
66103,
2777
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
19750,
734,
311,
1817,
422,
2958,
374,
4613,
323,
539,
4384,
271,
36913,
907,
2958,
198,
66103,
2777,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static Boolean isNotSet(File value) {
return null == value || value.toString().isEmpty() || value.toString().trim().length() == 0;
}
Documentation: | Utility function to check if File is defined and not empty
@param value File
@return boolean |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
571,
2226,
198,
262,
586,
742,
656,
17617,
368,
3872,
96749,
20912,
1378,
341,
286,
636,
2250,
1020,
2801,
446,
7468,
286,
636,
2250,
1020,
2801,
5063,
4069,
33343,
317,
286,
636,
2250,
1020,
2801,
446,
328,
350,
362,
432,
350,
358,
452,
480,
262,
622,
386,
469,
350,
469,
432,
262,
480,
549,
358,
7468,
286,
636,
2250,
1020,
2801,
5063,
4069,
33343,
317,
286,
1212,
41,
69324,
20844,
35431,
1082,
41,
69324,
19686,
1895,
1449,
262,
457,
65434,
25,
128001,
128000,
6003,
279,
622,
69324,
16840,
271,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
6003,
279,
622,
69324,
16840,
271,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: @Override
public void doExecute() throws MojoExecutionException {
getLog().info(" ");
getLog().info(LINE_SEPARATOR);
getLog().info(" S T A R T I N G J M E T E R G U I ");
getLog().info(LINE_SEPARATOR);
startJMeterGUI(initialiseJMeterArgumentsArray());
}
Documentation: | Load the JMeter GUI
@throws MojoExecutionException MojoExecutionException |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
12094,
2865,
8062,
1738,
20408,
6012,
1738,
8,
3872,
96749,
20912,
1378,
314,
443,
5782,
2770,
946,
198,
286,
1456,
320,
1738,
10689,
6012,
1738,
10689,
284,
502,
41285,
47004,
1738,
595,
341,
310,
12094,
6799,
8062,
284,
502,
12094,
545,
310,
6799,
8062,
5214,
47004,
1738,
10689,
317,
310,
471,
6799,
8062,
280,
286,
335,
2339,
320,
15402,
384,
8,
341,
310,
2571,
502,
96749,
20912,
1378,
2069,
13012,
1535,
384,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
18293,
264,
6012,
1052,
323,
2865,
433,
1139,
264,
12094,
3075,
271,
36913,
6012,
1738,
578,
1052,
311,
1456,
323,
2865,
198,
66103,
362,
6012,
1665,
198,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
18293,
264,
6012,
1052,
323,
2865,
433,
1139,
264,
12094,
3075,
271,
36913,
6012,
1738,
578,
1052,
311,
1456,
323,
2865,
198,
66103,
362,
6012,
1665,
198,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private Properties loadPropertiesFile(File propertiesFile) throws MojoExecutionException { // NOSONAR
try (FileInputStream propertiesFileInputStream = new FileInputStream(propertiesFile)) {
Properties loadedProperties = new Properties();
loadedProperties.load(propertiesFileInputStream);
return loadedProperties;
} catch (IOException e) {
throw new MojoExecutionException(e.getMessage(), e);
}
}
Documentation: | Take a properties file and load it into a Properties Object
@param propertiesFile The file to try and load
@return A properties object
@throws MojoExecutionException MojoExecutionException |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
2865,
36919,
291,
8062,
2746,
16892,
20408,
3984,
8062,
1738,
11,
2777,
8454,
2460,
8062,
8,
3872,
96749,
20912,
1378,
341,
286,
422,
320,
64525,
8062,
1738,
12347,
2189,
341,
310,
12094,
3984,
3128,
1681,
284,
2865,
8062,
1738,
10553,
44057,
8062,
1738,
317,
310,
422,
320,
56960,
8062,
8,
341,
394,
420,
21661,
284,
3984,
3128,
1681,
280,
310,
335,
775,
341,
394,
420,
21661,
3681,
2460,
10553,
44057,
3128,
1681,
317,
310,
457,
286,
457,
262,
457,
65434,
25,
128001,
128000,
4061,
422,
264,
1052,
6866,
13,
220,
1442,
433,
1587,
11294,
422,
584,
1205,
311,
11117,
433,
449,
6484,
6012,
11,
477,
8454,
682,
6484,
6012,
382,
36913,
3984,
8062,
1738,
362,
6012,
1052,
430,
690,
387,
1817,
311,
1518,
422,
433,
6866,
198,
36913,
8454,
2460,
8062,
256,
1442,
584,
1288,
8454,
682,
6012,
11,
477,
1120,
11117,
1124,
198,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
4061,
422,
264,
1052,
6866,
13,
220,
1442,
433,
1587,
11294,
422,
584,
1205,
311,
11117,
433,
449,
6484,
6012,
11,
477,
8454,
682,
6484,
6012,
382,
36913,
3984,
8062,
1738,
362,
6012,
1052,
430,
690,
387,
1817,
311,
1518,
422,
433,
6866,
198,
36913,
8454,
2460,
8062,
256,
1442,
584,
1288,
8454,
682,
6012,
11,
477,
1120,
11117,
1124,
198,
31,
8262,
96749,
20912,
1378,
96749,
20912,
1378,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void loadProvidedPropertiesIfAvailable(File providedPropertiesFile, boolean replaceAllProperties) throws MojoExecutionException {
if (providedPropertiesFile.exists()) {
Properties providedPropertySet = loadPropertiesFile(providedPropertiesFile);
if (replaceAllProperties) {
this.properties = providedPropertySet;
} else {
this.properties.putAll(providedPropertySet);
}
}
}
Documentation: | Check if a file exists. If it does calculate if we need to merge it with existing properties, or replace all existing properties.
@param providedPropertiesFile A properties file that will be check to see if it exists
@param replaceAllProperties If we should replace all properties, or just merge them
@throws MojoExecutionException MojoExecutionException |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
923,
3112,
1959,
5040,
8062,
21950,
3548,
11,
935,
29,
5217,
8062,
8,
341,
286,
5217,
8062,
10883,
1020,
5514,
2460,
97217,
53632,
5074,
1125,
286,
369,
320,
2276,
23131,
3548,
11,
935,
29,
5217,
8062,
2276,
551,
5217,
8062,
45496,
2189,
341,
310,
422,
1533,
36599,
8062,
2276,
12165,
1020,
10893,
1020,
19509,
2189,
341,
394,
6012,
32333,
26995,
3079,
8062,
2276,
23206,
1535,
5217,
8062,
2276,
12165,
1449,
394,
8985,
1502,
2173,
66322,
14199,
26995,
3079,
8062,
2276,
23206,
1535,
6012,
317,
310,
457,
286,
457,
262,
457,
65434,
25,
128001,
128000,
53196,
264,
5135,
315,
6012,
1139,
1057,
12094,
1665,
198,
791,
38314,
690,
33316,
904,
6484,
6012,
271,
36913,
5217,
8062,
5135,
311,
11117,
1139,
1057,
12094,
1665
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
53196,
264,
5135,
315,
6012,
1139,
1057,
12094,
1665,
198,
791,
38314,
690,
33316,
904,
6484,
6012,
271,
36913,
5217,
8062,
5135,
311,
11117,
1139,
1057,
12094,
1665,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void addAndOverwriteProperties(Map<String, String> additionalProperties) {
additionalProperties.values().removeAll(Collections.singleton(null));
for (Map.Entry<String, String> additionalPropertiesMap : additionalProperties.entrySet()) {
if (!additionalPropertiesMap.getValue().trim().isEmpty()) {
properties.setProperty(additionalPropertiesMap.getKey(), additionalPropertiesMap.getValue());
warnUserOfPossibleErrors(additionalPropertiesMap.getKey(), properties);
}
}
}
Documentation: | Merge a Map of properties into our Properties object
The additions will overwrite any existing properties
@param additionalProperties Map to merge into our Properties object |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
3350,
8062,
42650,
20408,
63943,
8,
3872,
96749,
20912,
1378,
17595,
5782,
2770,
946,
198,
286,
13619,
2729,
54103,
8062,
545,
286,
443,
15074,
422,
503,
60522,
21661,
3350,
6012,
430,
527,
2631,
369,
9183,
198,
286,
422,
320,
13495,
9389,
2189,
341,
310,
471,
280,
286,
457,
286,
1456,
341,
310,
1456,
320,
1738,
13087,
3350,
2729,
19918,
8062,
1738,
284,
502,
43756,
11304,
1738,
595,
341,
394,
6012,
16505,
56928,
2729,
19918,
8062,
1738,
11,
854,
317,
394,
3350,
2729,
19918,
8062,
1738,
23907,
545,
310,
457,
286,
335,
2339,
320,
15402,
384,
8,
341,
310,
2571,
502,
96749,
20912,
1378,
2069,
13012,
1535,
384,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
6025,
704,
904,
4694,
6012,
323,
1243,
3350,
6012,
1665,
311,
264,
1052,
382,
36913,
63943,
578,
1052,
430,
1057,
6012,
1665,
690,
387,
5439,
311
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
128000,
6025,
704,
904,
4694,
6012,
323,
1243,
3350,
6012,
1665,
311,
264,
1052,
382,
36913,
63943,
578,
1052,
430,
1057,
6012,
1665,
690,
387,
5439,
311,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void writePropertiesToFile(File outputFile) throws MojoExecutionException {// NOSONAR
stripOutReservedProperties();
//TODO if jmeter.properties write properties that are required for plugin
if (properties.isEmpty()) {
return;
}
try {
try (FileOutputStream writeOutFinalPropertiesFile = new FileOutputStream(outputFile)) {
properties.store(writeOutFinalPropertiesFile, null);
writeOutFinalPropertiesFile.flush();
}
} catch (IOException e) {
throw new MojoExecutionException(e.getMessage(), e);
}
}
Documentation: | Strip out any reserved properties and then write properties object to a file.
@param outputFile The file that our properties object will be written to |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
742,
8985,
1502,
2173,
66322,
14199,
2292,
502,
1622,
11,
12094,
2385,
8062,
8,
341,
286,
369,
320,
707,
1401,
551,
2385,
8062,
4909,
3128,
8139,
2189,
341,
310,
422,
1533,
798,
6624,
1792,
1622,
8,
1024,
1401,
31594,
1792,
1622,
595,
341,
394,
29188,
22123,
446,
2675,
617,
743,
264,
3424,
2663,
70522,
902,
374,
1633,
4528,
311,
70522,
34536,
667,
502,
1622,
11,
1401,
317,
310,
457,
286,
457,
262,
457,
65434,
25,
128001,
128000,
9171,
264,
10163,
704,
311,
279,
1217,
311,
11415,
4754,
13892,
981,
304,
279,
6012,
814,
617,
743,
382,
36913,
502,
1622,
260,
8825,
5273,
198,
36913,
2385,
8062,
12094
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9171,
264,
10163,
704,
311,
279,
1217,
311,
11415,
4754,
13892,
981,
304,
279,
6012,
814,
617,
743,
382,
36913,
502,
1622,
260,
8825,
5273,
198,
36913,
2385,
8062,
12094,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private void warnUserOfPossibleErrors(String newKey, Properties baseProperties) {
for (String key : baseProperties.stringPropertyNames()) {
if (!key.equals(newKey) && key.equalsIgnoreCase(newKey)) {
LOGGER.warn("You have set a property called '{}' which is very similar to '{}'!",
newKey, key);
}
}
}
Documentation: | Print a warning out to the user to highlight potential typos in the properties they have set.
@param newKey Property Value
@param baseProperties Properties |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
2777,
2865,
2292,
836,
11,
2777,
10356,
8,
341,
286,
2777,
6799,
284,
905,
401,
286,
1456,
341,
310,
17916,
5452,
284,
17916,
30253,
545,
310,
31651,
1738,
30695,
284,
502,
31651,
1738,
16221,
3692,
52328,
1020,
51274,
1535,
10356,
317,
310,
1456,
341,
394,
369,
320,
707,
1853,
551,
3127,
98234,
76900,
11,
836,
595,
341,
504,
31651,
5998,
4441,
284,
30695,
673,
72835,
5998,
5698,
317,
504,
422,
320,
4177,
624,
854,
8,
3136,
401,
504,
2958,
3127,
284,
8819,
3232,
11,
30695,
53164,
18739,
1125,
504,
744,
5214,
45928,
54054,
1449,
504,
3127,
7592,
1454,
504,
6799,
284,
837,
280,
504,
1464,
280,
394,
457,
310,
335,
5616,
341,
394,
30695,
4757,
545,
310,
457,
286,
335,
2339,
320,
28981,
384,
8,
341,
310,
6799,
284,
905,
280,
286,
557,
286,
471,
6799,
280,
262,
457,
65434,
25,
128001,
128000,
6003,
264,
6222,
6875,
11,
323,
46624,
10356,
279,
30695,
33728,
382,
36913,
836,
415,
4076,
315,
279,
6875,
311,
2865,
627,
36913,
10356,
262,
26504,
279,
30695,
1052,
422,
8667,
382,
66103,
837,
422,
279,
6875,
574,
7946,
6799,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
6003,
264,
6222,
6875,
11,
323,
46624,
10356,
279,
30695,
33728,
382,
36913,
836,
415,
4076,
315,
279,
6875,
311,
2865,
627,
36913,
10356,
262,
26504,
279,
30695,
1052,
422,
8667,
382,
66103,
837,
422,
279,
6875,
574,
7946,
6799,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public boolean load(String name, boolean verify) {
boolean loaded = false;
try {
Platform platform = Platform.detect();
JarFile jar = new JarFile(codeSource.getLocation().getPath(), verify);
try {
for (String path : libCandidates(platform, name)) {
JarEntry entry = jar.getJarEntry(path);
if (entry == null) continue;
File lib = extract(name, jar.getInputStream(entry));
System.load(lib.getAbsolutePath());
lib.delete();
loaded = true;
break;
}
} finally {
jar.close();
}
} catch (Throwable e) {
loaded = false;
}
return loaded;
}
Documentation: | Load a shared library, and optionally verify the jar signatures.
@param name Name of the library to load.
@param verify Verify the jar file if signed.
@return true if the library was successfully loaded. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
1118,
2958,
8819,
2292,
836,
11,
25899,
374,
8,
3872,
9530,
341,
286,
5027,
1318,
6745,
284,
502,
5027,
58,
12378,
21,
947,
286,
528,
2479,
401,
286,
2958,
3127,
284,
2958,
2581,
12427,
1738,
3232,
11,
330,
2808,
803,
286,
43756,
2709,
284,
502,
43756,
45928,
629,
286,
1456,
341,
310,
1418,
1819,
2963,
284,
374,
4217,
10963,
595,
871,
220,
15,
8,
341,
394,
2709,
3921,
10963,
11,
220,
15,
11,
2479,
317,
310,
457,
286,
335,
2339,
320,
15402,
384,
8,
341,
310,
3127,
7592,
545,
310,
2571,
384,
280,
286,
335,
5616,
341,
310,
2709,
4757,
545,
310,
374,
4757,
545,
286,
557,
286,
471,
3127,
280,
262,
457,
65434,
25,
128001,
128000,
30059,
264,
30695,
4441,
311,
264,
2798,
1052,
382,
36913,
836,
220,
4076,
9436,
369,
2798,
1052,
627,
36913,
374,
262,
31651,
4441,
1988,
4365,
382,
66103,
362,
13643,
1052,
382,
31,
8262,
9530,
994,
459,
6565,
1493,
13980,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
30059,
264,
30695,
4441,
311,
264,
2798,
1052,
382,
36913,
836,
220,
4076,
9436,
369,
2798,
1052,
627,
36913,
374,
262,
31651,
4441,
1988,
4365,
382,
66103,
362,
13643,
1052,
382,
31,
8262,
9530,
994,
459,
6565,
1493,
13980,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private static File extract(String name, InputStream is) throws IOException {
byte[] buf = new byte[4096];
int len;
File lib = File.createTempFile(name, "lib");
FileOutputStream os = new FileOutputStream(lib);
try {
while ((len = is.read(buf)) > 0) {
os.write(buf, 0, len);
}
} catch (IOException e) {
lib.delete();
throw e;
} finally {
os.close();
is.close();
}
return lib;
}
Documentation: | Extract a jar entry to a temp file.
@param name Name prefix for temp file.
@param is Jar entry input stream.
@return A temporary file.
@throws IOException when an IO error occurs. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
1796,
3548,
29,
3127,
98234,
7,
17745,
5452,
11,
935,
836,
8,
341,
286,
1796,
3548,
29,
11426,
284,
502,
5166,
3548,
4000,
286,
11664,
8057,
284,
502,
11664,
1454,
286,
8057,
2102,
94399,
1858,
570,
5200,
59523,
286,
8057,
2102,
76900,
39191,
570,
5200,
59523,
286,
8057,
2102,
76900,
9475,
570,
5200,
59523,
286,
8057,
2102,
446,
2808,
1865,
5200,
3232,
629,
286,
3480,
320,
16111,
9475,
8,
341,
310,
1162,
15627,
7678,
512,
394,
11426,
1388,
37484,
489,
6058,
10470,
2808,
803,
394,
11426,
1388,
37484,
489,
6058,
73,
8551,
581,
803,
394,
1464,
280,
310,
1162,
37345,
512,
310,
1162,
1949,
52935,
512,
394,
11426,
1388,
37484,
489,
6058,
708,
803,
394,
1464,
280,
286,
557,
286,
471,
11426,
280,
262,
457,
65434,
25,
128001,
128000,
32215,
264,
1160,
315,
9322,
20797,
369,
279,
17665,
6875,
836,
323,
14791,
198,
2000,
279,
1510,
5452,
382,
36913,
5452,
220,
9303,
5452,
627,
36913,
836,
415,
11896,
836,
382,
66103,
1796,
315,
4754,
6875,
5144,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
1160,
315,
9322,
20797,
369,
279,
17665,
6875,
836,
323,
14791,
198,
2000,
279,
1510,
5452,
382,
36913,
5452,
220,
9303,
5452,
627,
36913,
836,
415,
11896,
836,
382,
66103,
1796,
315,
4754,
6875,
5144,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private List<String> libCandidates(Platform platform, String name) {
List<String> candidates = new ArrayList<String>();
StringBuilder sb = new StringBuilder();
sb.append(libraryPath).append("/");
sb.append(platform.arch).append("/");
sb.append(platform.os).append("/");
sb.append("lib").append(name);
switch (platform.os) {
case darwin:
candidates.add(sb + ".dylib");
candidates.add(sb + ".jnilib");
break;
case linux:
case freebsd:
candidates.add(sb + ".so");
break;
}
return candidates;
}
Documentation: | Generate a list of candidate libraries for the supplied library name and suitable
for the current platform.
@param platform Current platform.
@param name Library name.
@return List of potential library names. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
5027,
1318,
17322,
7078,
1318,
2338,
11,
528,
1318,
2007,
11,
1181,
11262,
8,
341,
286,
528,
2479,
284,
2338,
1996,
401,
286,
422,
320,
2963,
624,
220,
15,
8,
471,
502,
5027,
58,
15,
4926,
286,
528,
11262,
2568,
284,
320,
3632,
25721,
482,
220,
16,
60,
624,
11262,
949,
320,
3632,
25721,
482,
220,
17,
60,
624,
11262,
949,
220,
17,
551,
220,
16,
8,
551,
220,
15,
317,
286,
528,
5943,
262,
284,
320,
2963,
353,
220,
21,
3662,
220,
18,
8,
482,
11262,
2568,
280,
286,
528,
10215,
256,
284,
320,
9848,
611,
220,
18,
8,
353,
220,
18,
401,
286,
5027,
1318,
10875,
284,
502,
5027,
58,
9848,
947,
286,
528,
4502,
284,
220,
15,
11,
1891,
284,
220,
15,
401,
286,
1418,
320,
8747,
366,
10215,
8,
341,
310,
528,
308,
284,
2007,
64776,
58,
6455,
1044,
5163,
1134,
220,
972,
765,
2007,
64776,
58,
6455,
1044,
5163,
1134,
220,
717,
765,
2007,
64776,
58,
6455,
1044,
5163,
1134,
220,
21,
765,
2007,
64776,
58,
6455,
1044,
13507,
310,
10875,
58,
8747,
15997,
284,
320,
3867,
8,
320,
77,
3662,
220,
845,
317,
310,
10875,
58,
8747,
15997,
284,
320,
3867,
8,
320,
77,
3662,
220,
220,
23,
317,
310,
10875,
58,
8747,
15997,
284,
320,
3867,
8,
308,
280,
286,
557,
286,
422,
320,
8747,
366,
5943,
8,
341,
310,
528,
308,
284,
220,
15,
280,
310,
3480,
320,
2963,
482,
4502,
8,
341,
394,
1162,
220,
19,
25,
308,
8832,
2007,
64776,
58,
6455,
10,
18,
13507,
394,
1162,
220,
18,
25,
308,
8832,
2007,
64776,
58,
6455,
10,
17,
5163,
1134,
220,
220,
21,
280,
394,
1162,
220,
17,
25,
308,
8832,
2007,
64776,
58,
6455,
10,
16,
5163,
1134,
220,
717,
280,
394,
1162,
220,
16,
25,
308,
8832,
2007,
64776,
58,
6455,
5163,
256,
1134,
220,
972,
280,
310,
457,
310,
369,
320,
396,
436,
284,
220,
845,
26,
1891,
366,
5943,
26,
436,
6110,
220,
23,
8,
341,
394,
10875,
58,
8747,
15997,
284,
320,
3867,
8,
320,
77,
3662,
436,
317,
310,
457,
286,
557,
286,
471,
10875,
280,
262,
457,
65434,
25,
128001,
128000,
33664,
2385,
1227,
23861,
311,
5943,
1701,
279,
17665,
17322,
2007,
323,
5413,
198,
19740,
382,
36913,
2338,
256,
5464,
1227,
21136,
828,
627,
36913,
2007,
51294,
2007,
627,
36913,
11262,
256,
23889,
3752,
382,
66103,
3799,
6879,
5943,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
33664,
2385,
1227,
23861,
311,
5943,
1701,
279,
17665,
17322,
2007,
323,
5413,
198,
19740,
382,
36913,
2338,
256,
5464,
1227,
21136,
828,
627,
36913,
2007,
51294,
2007,
627,
36913,
11262,
256,
23889,
3752,
382,
66103,
3799,
6879,
5943,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static byte[] decode(char[] src, int[] table, char pad) {
int len = src.length;
if (len == 0) return new byte[0];
int padCount = (src[len - 1] == pad ? (src[len - 2] == pad ? 2 : 1) : 0);
int bytes = (len * 6 >> 3) - padCount;
int blocks = (bytes / 3) * 3;
byte[] dst = new byte[bytes];
int si = 0, di = 0;
while (di < blocks) {
int n = table[src[si++]] << 18 | table[src[si++]] << 12 | table[src[si++]] << 6 | table[src[si++]];
dst[di++] = (byte) (n >> 16);
dst[di++] = (byte) (n >> 8);
dst[di++] = (byte) n;
}
if (di < bytes) {
int n = 0;
switch (len - si) {
case 4: n |= table[src[si+3]];
case 3: n |= table[src[si+2]] << 6;
case 2: n |= table[src[si+1]] << 12;
case 1: n |= table[src[si]] << 18;
}
for (int r = 16; di < bytes; r -= 8) {
dst[di++] = (byte) (n >> r);
}
}
return dst;
}
Documentation: | Decode base64 chars to bytes using the supplied decode table and padding
character.
@param src Base64 encoded data.
@param table Decode table.
@param pad Padding character.
@return Decoded bytes. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
1181,
1318,
16559,
20318,
1318,
2338,
11,
1181,
1318,
2007,
11,
1181,
11262,
8,
341,
286,
528,
2479,
284,
2338,
1996,
401,
286,
422,
320,
2963,
624,
220,
15,
8,
471,
502,
1181,
58,
15,
4926,
286,
528,
10215,
284,
320,
2963,
611,
220,
18,
8,
353,
220,
18,
280,
286,
528,
23861,
220,
284,
1819,
2963,
482,
220,
16,
8,
611,
220,
18,
489,
220,
16,
8,
1134,
220,
17,
280,
286,
528,
9986,
256,
284,
2479,
482,
10215,
280,
286,
422,
320,
13545,
624,
220,
15,
1024,
9986,
871,
220,
15,
8,
23861,
6110,
220,
18,
482,
9986,
401,
286,
1181,
1318,
10875,
284,
502,
1181,
58,
19811,
947,
286,
528,
4502,
284,
220,
15,
11,
1891,
284,
220,
15,
401,
286,
1418,
320,
6455,
366,
10215,
8,
341,
310,
528,
308,
284,
320,
3632,
58,
6455,
15997,
612,
220,
15,
9197,
8,
1134,
220,
845,
765,
320,
3632,
58,
6455,
15997,
612,
220,
15,
9197,
8,
1134,
220,
23,
765,
320,
3632,
58,
6455,
15997,
612,
220,
15,
9197,
317,
310,
10875,
58,
8747,
15997,
284,
2007,
9896,
77,
12382,
220,
972,
8,
612,
220,
15,
87,
18,
69,
947,
310,
10875,
58,
8747,
15997,
284,
2007,
9896,
77,
12382,
220,
717,
8,
612,
220,
15,
87,
18,
69,
947,
310,
10875,
58,
8747,
15997,
284,
2007,
9896,
77,
12382,
220,
220,
21,
8,
612,
220,
15,
87,
18,
69,
947,
310,
10875,
58,
8747,
15997,
284,
2007,
7824,
692,
612,
220,
15,
87,
18,
69,
947,
286,
557,
286,
422,
320,
14928,
871,
220,
15,
8,
341,
310,
528,
308,
284,
320,
3632,
58,
6455,
60,
612,
220,
15,
9197,
8,
1134,
220,
605,
280,
310,
422,
320,
14928,
624,
220,
17,
8,
308,
8832,
320,
3632,
48824,
6455,
60,
612,
220,
15,
9197,
8,
1134,
220,
17,
401,
310,
10875,
58,
8747,
15997,
284,
2007,
9896,
77,
12382,
220,
717,
8,
612,
220,
15,
87,
18,
69,
947,
310,
10875,
58,
8747,
15997,
284,
2007,
9896,
77,
12382,
220,
21,
8,
220,
612,
220,
15,
87,
18,
69,
947,
310,
422,
320,
14928,
624,
220,
17,
8,
10875,
58,
8747,
15997,
284,
2007,
7824,
612,
220,
15,
87,
18,
69,
4926,
310,
422,
320,
13545,
976,
220,
15,
8,
341,
394,
422,
320,
14928,
624,
220,
16,
8,
10875,
58,
8747,
15997,
284,
11262,
280,
394,
10875,
58,
8747,
60,
284,
11262,
280,
310,
457,
286,
557,
286,
471,
10875,
280,
262,
457,
65434,
25,
128001,
128000,
33635,
5943,
311,
2385,
1227,
23861,
1701,
279,
17665,
16559,
2007,
323,
449,
198,
13099,
5413,
382,
36913,
2338,
256,
31124,
311,
16559,
627,
36913,
2007,
30430,
2007,
627,
36913,
11262,
256,
23889,
3752,
11,
477,
220,
15,
369,
912,
5413,
382,
66103,
10984,
6879,
23861,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
33635,
5943,
311,
2385,
1227,
23861,
1701,
279,
17665,
16559,
2007,
323,
449,
198,
13099,
5413,
382,
36913,
2338,
256,
31124,
311,
16559,
627,
36913,
2007,
30430,
2007,
627,
36913,
11262,
256,
23889,
3752,
11,
477,
220,
15,
369,
912,
5413,
382,
66103,
10984,
6879,
23861,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static char[] encode(byte[] src, char[] table, char pad) {
int len = src.length;
if (len == 0) return new char[0];
int blocks = (len / 3) * 3;
int chars = ((len - 1) / 3 + 1) << 2;
int tail = len - blocks;
if (pad == 0 && tail > 0) chars -= 3 - tail;
char[] dst = new char[chars];
int si = 0, di = 0;
while (si < blocks) {
int n = (src[si++] & 0xff) << 16 | (src[si++] & 0xff) << 8 | (src[si++] & 0xff);
dst[di++] = table[(n >>> 18) & 0x3f];
dst[di++] = table[(n >>> 12) & 0x3f];
dst[di++] = table[(n >>> 6) & 0x3f];
dst[di++] = table[n & 0x3f];
}
if (tail > 0) {
int n = (src[si] & 0xff) << 10;
if (tail == 2) n |= (src[++si] & 0xff) << 2;
dst[di++] = table[(n >>> 12) & 0x3f];
dst[di++] = table[(n >>> 6) & 0x3f];
if (tail == 2) dst[di++] = table[n & 0x3f];
if (pad != 0) {
if (tail == 1) dst[di++] = pad;
dst[di] = pad;
}
}
return dst;
}
Documentation: | Encode bytes to base64 chars using the supplied encode table and with
optional padding.
@param src Bytes to encode.
@param table Encoding table.
@param pad Padding character, or 0 for no padding.
@return Encoded chars. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
2777,
2865,
2292,
836,
11,
2777,
10356,
8,
341,
286,
2777,
6799,
401,
286,
1456,
341,
310,
744,
5214,
17344,
3232,
317,
310,
6799,
284,
837,
280,
286,
335,
2339,
320,
28981,
384,
8,
341,
310,
6799,
284,
905,
280,
286,
557,
286,
471,
6799,
280,
262,
457,
65434,
25,
128001,
128000,
6003,
264,
6222,
6875,
382,
36913,
836,
415,
4076,
315,
279,
6875,
311,
2865,
627,
36913,
10356,
262,
34881,
3093,
11,
912,
23751,
374,
2884,
382,
66103,
837,
422,
279,
6875,
574,
7946,
6799,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
6003,
264,
6222,
6875,
382,
36913,
836,
415,
4076,
315,
279,
6875,
311,
2865,
627,
36913,
10356,
262,
34881,
3093,
11,
912,
23751,
374,
2884,
382,
66103,
837,
422,
279,
6875,
574,
7946,
6799,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public boolean load(String name, boolean verify) {
boolean loaded;
try {
System.loadLibrary(name);
loaded = true;
} catch (Throwable e) {
loaded = false;
}
return loaded;
}
Documentation: | Load a shared library.
@param name Name of the library to load.
@param verify Ignored, no verification is done.
@return true if the library was successfully loaded. |
Subsets and Splits