id string | hexsha string | jep string | messages list | violations string | num_violations int64 |
|---|---|---|---|---|---|
bb7f95d2ed54eecb2106a9d649f049edee9b0827_jep406-after | bb7f95d2ed54eecb2106a9d649f049edee9b0827 | jep406-after | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'PatternMatchingSwitchAfter'\n \nUse of a switch expression or statement with case labels containing type patterns (and optionally a guard), binding the matched variable withi... | [] | 0 |
967960dc7a37e7c043859283c50adaf690b677d8_jep406-before | 967960dc7a37e7c043859283c50adaf690b677d8 | jep406-before | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'PatternMatchingSwitchBefore'\n \nUse of a sequence of if-else if statements to test an object's type via instanceof, with a manual cast, to handle each case separately. This ... | [{"start_line": 170, "end_line": 171, "span": "(node instanceof Sort)\nSort sort = (Sort) node;", "pattern_name": "jep_406_before_if_else_if_instance_of_typecast", "code_lines": " if (node instanceof Sort) {\n Sort sort = (Sort) node;", "code_lines_with_linenos": " 170 if (node instanceof Sort) {\n ... | 1 |
95f058e8f8fd54a9bd224a99ba8793187a97c955_jep361-after | 95f058e8f8fd54a9bd224a99ba8793187a97c955 | jep361-after | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'SwitchExpressionsAfter'\n \nUse of switch expressions, allowing a return value. Employs the -> syntax for case labels, eliminating fall-through behavior. Flag statements that... | [{"start_line": 38, "end_line": 38, "span": "->", "pattern_name": "jep_361_after_arrow", "code_lines": " case EQUALS -> criteriaBuilder.equal(root.get(fieldName), value);", "code_lines_with_linenos": " 38 case EQUALS -> criteriaBuilder.equal(root.get(fieldName), value);", "jep_code": "j... | 9 |
5afec8d877661de6fc080b025297622d4b439b45_jep378-after | 5afec8d877661de6fc080b025297622d4b439b45 | jep378-after | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'TextBlocksAfter'\n \nUse of multiline string literal enclosed by triple double-quote marks (\"\"\"), allowing for cleaner and more readable representation of multiline string... | [] | 0 |
c491a828ce9d03f1ff95c8e2f245cbf6d3e312ae_jep395-before | c491a828ce9d03f1ff95c8e2f245cbf6d3e312ae | jep395-before | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'RecordClassBefore'\n \nUse of simple data aggregates with traditional classes which could be replaced with a record class. This approach requires explicit declarations of fie... | [] | 0 |
08e035c18d518ebd9d0b16242be1553fdfb7e84f_jep395-before | 08e035c18d518ebd9d0b16242be1553fdfb7e84f | jep395-before | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'RecordClassBefore'\n \nUse of simple data aggregates with traditional classes which could be replaced with a record class. This approach requires explicit declarations of fie... | [{"start_line": 3, "end_line": 50, "span": "public class Pair<A, B> {\r\n private A first;\r\n private B second;\r\n\r\n public Pair(A first, B second) {\r\n super();\r\n this.first = first;\r\n this.second = second;\r\n }\r\n\r\n public Pair() {\r\n super();\r\n }\r\n\r\n public Pair<A, B> set(A fir... | 1 |
a5767947e64f87859e4fdb3c33798eae2d96c559_jep394-after | a5767947e64f87859e4fdb3c33798eae2d96c559 | jep394-after | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'PatternMatchingInstanceOfAfter'\n \nReplaces verbose instanceof tests plus manual casting into a concise form that tests and declares a typed variable in one step, for exampl... | [] | 0 |
cf49c756e90b381c978ed9fdee8cea3a514a2447_jep406-after | cf49c756e90b381c978ed9fdee8cea3a514a2447 | jep406-after | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'PatternMatchingSwitchAfter'\n \nUse of a switch expression or statement with case labels containing type patterns (and optionally a guard), binding the matched variable withi... | [] | 0 |
322f91a011b6432e7e7731ef26444d4dd61e0bb1_jep394-before | 322f91a011b6432e7e7731ef26444d4dd61e0bb1 | jep394-before | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'PatternMatchingInstanceOfBefore'\n \nUsage of the old pattern of testing with instanceof followed by a manual cast to extract and operate on the object. This pattern is verbo... | [] | 0 |
a0e72827318633267c3f553329aada1b4cd2d732_jep378-after | a0e72827318633267c3f553329aada1b4cd2d732 | jep378-after | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'TextBlocksAfter'\n \nUse of multiline string literal enclosed by triple double-quote marks (\"\"\"), allowing for cleaner and more readable representation of multiline string... | [{"start_line": 10, "end_line": 74, "span": "\"\"\"\n\t\t\t {\n\t\t\t \"nsdId\": \"59065615-9b6b-4344-8432-1eb7975a37e7\",\n\t\t\t \"vimAccountId\": \"eb0db325-6cc0-4763-813e-0d06ff754a4e\",\n\t\t\t \"vnf\": [\n\t\t\t {\n\t\t\t \"member-vnf-index\": \"1\",\n\t\t\t \"vd... | 3 |
1a8677a776876850946d0d5634eedaf962f30493_jep406-after | 1a8677a776876850946d0d5634eedaf962f30493 | jep406-after | [
{
"content": "# Task Instructions (1/2):\n\nLook at the following code idiom specification with definitions and examples:\n\n## Idiom 'PatternMatchingSwitchAfter'\n \nUse of a switch expression or statement with case labels containing type patterns (and optionally a guard), binding the matched variable withi... | [{"start_line": 36, "end_line": 36, "span": "case (\"pensioner\")", "pattern_name": "jep_406_after_paranthesized_pattern", "code_lines": " case (\"pensioner\"):", "code_lines_with_linenos": " 36 case (\"pensioner\"):", "jep_code": "jep406", "before_or_after": "after"}, {"start_line": 39, "end_l... | 6 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6