Skip to content

Commit 37b26ff

Browse files
authored
OpenRewrite v8.51.0 (#382)
* OpenRewrite v8.51.0 * Manual fixes needed
1 parent e194617 commit 37b26ff

File tree

3,732 files changed

+241022
-5632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,732 files changed

+241022
-5632
lines changed

docs/changelog/8-51-0-Release.md

Lines changed: 2529 additions & 0 deletions
Large diffs are not rendered by default.

docs/recipes/ai/findcommentslanguage.md

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,68 @@ _Finds all comments and uses AI to predict which language the comment is in._
1515

1616
This recipe is only available to users of [Moderne](https://docs.moderne.io/).
1717

18-
## License
1918

2019
This recipe is available under the [Moderne Proprietary License](https://docs.moderne.io/licensing/overview).
2120

21+
## Example
22+
23+
24+
<Tabs groupId="beforeAfter">
25+
<TabItem value="java" label="java">
26+
27+
28+
###### Before
29+
```java
30+
import kong.unirest.*;
31+
class Test {
32+
void test() {
33+
/* this is comments
34+
still a comment
35+
*/
36+
Unirest.post("https://httpbin.org/post")
37+
.header("Content-Type", "application/json")
38+
.body("1")
39+
.asString(); // This is a comment
40+
}
41+
}
42+
```
43+
44+
###### After
45+
```java
46+
import kong.unirest.*;
47+
class Test {
48+
void test() {
49+
/*~~>*//* this is comments
50+
still a comment
51+
*/
52+
Unirest.post("https://httpbin.org/post")
53+
.header("Content-Type", "application/json")
54+
.body("1")
55+
.asString(); /*~~>*/// This is a comment
56+
}
57+
}
58+
```
59+
60+
</TabItem>
61+
<TabItem value="diff" label="Diff" >
62+
63+
```diff
64+
@@ -4,1 +4,1 @@
65+
class Test {
66+
void test() {
67+
- /* this is comments
68+
+ /*~~>*//* this is comments
69+
still a comment
70+
@@ -10,1 +10,1 @@
71+
.header("Content-Type", "application/json")
72+
.body("1")
73+
- .asString(); // This is a comment
74+
+ .asString(); /*~~>*/// This is a comment
75+
}
76+
```
77+
</TabItem>
78+
</Tabs>
79+
2280

2381
## Usage
2482

@@ -52,6 +110,9 @@ The community edition of the Moderne platform enables you to easily run recipes
52110
Please [contact Moderne](https://moderne.io/product) for more information about safely running the recipes on your own codebase in a private SaaS.
53111
## Data Tables
54112

113+
<Tabs groupId="data-tables">
114+
<TabItem value="io.moderne.ai.table.LanguageDistribution" label="LanguageDistribution">
115+
55116
### Comment language distribution
56117
**io.moderne.ai.table.LanguageDistribution**
57118

@@ -63,6 +124,10 @@ _Shows the distribution of language in comments_
63124
| Comment | The comment found |
64125
| Language | Language the AI predicted the comment was in |
65126

127+
</TabItem>
128+
129+
<TabItem value="org.openrewrite.table.SourcesFileResults" label="SourcesFileResults">
130+
66131
### Source files that had results
67132
**org.openrewrite.table.SourcesFileResults**
68133

@@ -77,6 +142,10 @@ _Source files that were modified by the recipe run._
77142
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
78143
| Cycle | The recipe cycle in which the change was made. |
79144

145+
</TabItem>
146+
147+
<TabItem value="org.openrewrite.table.SourcesFileErrors" label="SourcesFileErrors">
148+
80149
### Source files that errored on a recipe
81150
**org.openrewrite.table.SourcesFileErrors**
82151

@@ -88,6 +157,10 @@ _The details of all errors produced by a recipe run._
88157
| Recipe that made changes | The specific recipe that made a change. |
89158
| Stack trace | The stack trace of the failure. |
90159

160+
</TabItem>
161+
162+
<TabItem value="org.openrewrite.table.RecipeRunStats" label="RecipeRunStats">
163+
91164
### Recipe performance
92165
**org.openrewrite.table.RecipeRunStats**
93166

@@ -105,6 +178,9 @@ _Statistics used in analyzing the performance of recipes._
105178
| 99th percentile edit time | 99 out of 100 edits completed in this amount of time. |
106179
| Max edit time | The max time editing any one source file. |
107180

181+
</TabItem>
182+
183+
</Tabs>
108184

109185
## Contributors
110186
[juju](mailto:justine.gehring@gmail.com), [Tim te Beek](mailto:tim@moderne.io)

docs/recipes/ai/fixmisencodedcommentsinfrench.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ _Fixes mis-encoded French comments in your code, javadocs and in your pom.xml fi
1919

2020
This recipe is only available to users of [Moderne](https://docs.moderne.io/).
2121

22-
## License
2322

2423
This recipe is available under the [Moderne Proprietary License](https://docs.moderne.io/licensing/overview).
2524

@@ -56,6 +55,9 @@ The community edition of the Moderne platform enables you to easily run recipes
5655
Please [contact Moderne](https://moderne.io/product) for more information about safely running the recipes on your own codebase in a private SaaS.
5756
## Data Tables
5857

58+
<Tabs groupId="data-tables">
59+
<TabItem value="org.openrewrite.table.SourcesFileResults" label="SourcesFileResults">
60+
5961
### Source files that had results
6062
**org.openrewrite.table.SourcesFileResults**
6163

@@ -70,6 +72,10 @@ _Source files that were modified by the recipe run._
7072
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
7173
| Cycle | The recipe cycle in which the change was made. |
7274

75+
</TabItem>
76+
77+
<TabItem value="org.openrewrite.table.SourcesFileErrors" label="SourcesFileErrors">
78+
7379
### Source files that errored on a recipe
7480
**org.openrewrite.table.SourcesFileErrors**
7581

@@ -81,6 +87,10 @@ _The details of all errors produced by a recipe run._
8187
| Recipe that made changes | The specific recipe that made a change. |
8288
| Stack trace | The stack trace of the failure. |
8389

90+
</TabItem>
91+
92+
<TabItem value="org.openrewrite.table.RecipeRunStats" label="RecipeRunStats">
93+
8494
### Recipe performance
8595
**org.openrewrite.table.RecipeRunStats**
8696

@@ -98,6 +108,9 @@ _Statistics used in analyzing the performance of recipes._
98108
| 99th percentile edit time | 99 out of 100 edits completed in this amount of time. |
99109
| Max edit time | The max time editing any one source file. |
100110

111+
</TabItem>
112+
113+
</Tabs>
101114

102115
## Contributors
103116
[juju](mailto:justine.gehring@gmail.com), [Tim te Beek](mailto:tim@moderne.io), justine-gehring

docs/recipes/ai/listallmethodsused.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,24 @@ _List all methods used in any Java source file._
1515

1616
This recipe is only available to users of [Moderne](https://docs.moderne.io/).
1717

18-
## License
1918

2019
This recipe is available under the [Moderne Proprietary License](https://docs.moderne.io/licensing/overview).
2120

21+
## Example
22+
23+
24+
###### Unchanged
25+
```java
26+
class A {
27+
void method1(){
28+
System.out.println("Hello");
29+
}
30+
void method2(){
31+
method1();
32+
}
33+
}
34+
```
35+
2236

2337
## Usage
2438

@@ -52,6 +66,9 @@ The community edition of the Moderne platform enables you to easily run recipes
5266
Please [contact Moderne](https://moderne.io/product) for more information about safely running the recipes on your own codebase in a private SaaS.
5367
## Data Tables
5468

69+
<Tabs groupId="data-tables">
70+
<TabItem value="io.moderne.ai.table.MethodInUse" label="MethodInUse">
71+
5572
### Methods used
5673
**io.moderne.ai.table.MethodInUse**
5774

@@ -65,6 +82,10 @@ _Methods used in any Java source file._
6582
| Parameters | The parameters of the method. |
6683
| Parameter types | The types of the parameters of the method. |
6784

85+
</TabItem>
86+
87+
<TabItem value="org.openrewrite.table.SourcesFileResults" label="SourcesFileResults">
88+
6889
### Source files that had results
6990
**org.openrewrite.table.SourcesFileResults**
7091

@@ -79,6 +100,10 @@ _Source files that were modified by the recipe run._
79100
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
80101
| Cycle | The recipe cycle in which the change was made. |
81102

103+
</TabItem>
104+
105+
<TabItem value="org.openrewrite.table.SourcesFileErrors" label="SourcesFileErrors">
106+
82107
### Source files that errored on a recipe
83108
**org.openrewrite.table.SourcesFileErrors**
84109

@@ -90,6 +115,10 @@ _The details of all errors produced by a recipe run._
90115
| Recipe that made changes | The specific recipe that made a change. |
91116
| Stack trace | The stack trace of the failure. |
92117

118+
</TabItem>
119+
120+
<TabItem value="org.openrewrite.table.RecipeRunStats" label="RecipeRunStats">
121+
93122
### Recipe performance
94123
**org.openrewrite.table.RecipeRunStats**
95124

@@ -107,6 +136,9 @@ _Statistics used in analyzing the performance of recipes._
107136
| 99th percentile edit time | 99 out of 100 edits completed in this amount of time. |
108137
| Max edit time | The max time editing any one source file. |
109138

139+
</TabItem>
140+
141+
</Tabs>
110142

111143
## Contributors
112144
[Jonathan Schneider](mailto:jkschneider@gmail.com), [Tim te Beek](mailto:tim@moderne.io)

0 commit comments

Comments
 (0)