Skip to content

Commit

Permalink
Add generated recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-solomon committed Nov 14, 2024
1 parent 61feaf3 commit 2614d24
Show file tree
Hide file tree
Showing 2,894 changed files with 50,180 additions and 49,522 deletions.
32 changes: 14 additions & 18 deletions docs/recipes/ai/findcommentslanguage.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,37 @@ _Finds all comments and uses AI to predict which language the comment is in._

## Recipe source

[GitHub](https://github.com/openrewrite/rewrite-ai-search/blob/main/src/main/java/io/moderne/ai/FindCommentsLanguage.java), [Issue Tracker](https://github.com/openrewrite/rewrite-ai-search/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-ai-search/0.18.1/jar)
[GitHub](https://github.com/openrewrite/rewrite-ai-search/blob/main/src/main/java/io/moderne/ai/FindCommentsLanguage.java), [Issue Tracker](https://github.com/openrewrite/rewrite-ai-search/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-ai-search/0.19.1/jar)

* groupId: org.openrewrite.recipe
* artifactId: rewrite-ai-search
* version: 0.18.1
* version: 0.19.1


## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-ai-search:0.18.1` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-ai-search:0.19.1` in your build file or by running a shell command (in which case no build changes are needed):
<Tabs groupId="projectType">
<TabItem value="gradle" label="Gradle">

1. Add the following to your `build.gradle` file:

```groovy title="build.gradle"
plugins {
id("org.openrewrite.rewrite") version("6.26.0")
id("org.openrewrite.rewrite") version("6.27.1")
}
rewrite {
activeRecipe("io.moderne.ai.FindCommentsLanguage")
exportDatatables = true
setExportDatatables(true)
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.18.1")
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.19.1")
}
```

Expand All @@ -59,16 +59,16 @@ initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies { classpath("org.openrewrite:plugin:6.26.0") }
dependencies { classpath("org.openrewrite:plugin:6.27.1") }
}
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.18.1")
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.19.1")
}
rewrite {
activeRecipe("io.moderne.ai.FindCommentsLanguage")
exportDatatables = true
setExportDatatables(true)
}
afterEvaluate {
if (repositories.isEmpty()) {
Expand Down Expand Up @@ -98,7 +98,7 @@ gradle --init-script init.gradle rewriteRun
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.43.0</version>
<version>5.45.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
Expand All @@ -109,7 +109,7 @@ gradle --init-script init.gradle rewriteRun
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-ai-search</artifactId>
<version>0.18.1</version>
<version>0.19.1</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -140,13 +140,9 @@ mod run . --recipe FindCommentsLanguage

## See how this recipe works across multiple open-source repositories

<a href="https://app.moderne.io/recipes/io.moderne.ai.FindCommentsLanguage">
<img
src={require("/static/img/ModerneRecipeButton.png").default}
alt="Moderne Link Image"
width="50%"
/>
</a>
import RecipeCallout from '@site/src/components/ModerneLink';

<RecipeCallout link="https://app.moderne.io/recipes/io.moderne.ai.FindCommentsLanguage" />

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Expand Down
32 changes: 14 additions & 18 deletions docs/recipes/ai/fixmisencodedcommentsinfrench.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ _Fixes mis-encoded French comments in your code, javadocs and in your pom.xml fi

## Recipe source

[GitHub](https://github.com/openrewrite/rewrite-ai-search/blob/main/src/main/resources/META-INF/rewrite/misencoded-french.yml), [Issue Tracker](https://github.com/openrewrite/rewrite-ai-search/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-ai-search/0.18.1/jar)
[GitHub](https://github.com/openrewrite/rewrite-ai-search/blob/main/src/main/resources/META-INF/rewrite/misencoded-french.yml), [Issue Tracker](https://github.com/openrewrite/rewrite-ai-search/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-ai-search/0.19.1/jar)

* groupId: org.openrewrite.recipe
* artifactId: rewrite-ai-search
* version: 0.18.1
* version: 0.19.1

:::info
This recipe is composed of more than one recipe. If you want to customize the set of recipes this is composed of, you can find and copy the GitHub source for the recipe from the link above.
Expand Down Expand Up @@ -56,28 +56,28 @@ recipeList:

## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-ai-search:0.18.1` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-ai-search:0.19.1` in your build file or by running a shell command (in which case no build changes are needed):
<Tabs groupId="projectType">
<TabItem value="gradle" label="Gradle">

1. Add the following to your `build.gradle` file:

```groovy title="build.gradle"
plugins {
id("org.openrewrite.rewrite") version("6.26.0")
id("org.openrewrite.rewrite") version("6.27.1")
}
rewrite {
activeRecipe("io.moderne.ai.FixMisencodedCommentsInFrench")
exportDatatables = true
setExportDatatables(true)
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.18.1")
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.19.1")
}
```

Expand All @@ -93,16 +93,16 @@ initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies { classpath("org.openrewrite:plugin:6.26.0") }
dependencies { classpath("org.openrewrite:plugin:6.27.1") }
}
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.18.1")
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.19.1")
}
rewrite {
activeRecipe("io.moderne.ai.FixMisencodedCommentsInFrench")
exportDatatables = true
setExportDatatables(true)
}
afterEvaluate {
if (repositories.isEmpty()) {
Expand Down Expand Up @@ -132,7 +132,7 @@ gradle --init-script init.gradle rewriteRun
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.43.0</version>
<version>5.45.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
Expand All @@ -143,7 +143,7 @@ gradle --init-script init.gradle rewriteRun
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-ai-search</artifactId>
<version>0.18.1</version>
<version>0.19.1</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -174,13 +174,9 @@ mod run . --recipe FixMisencodedCommentsInFrench

## See how this recipe works across multiple open-source repositories

<a href="https://app.moderne.io/recipes/io.moderne.ai.FixMisencodedCommentsInFrench">
<img
src={require("/static/img/ModerneRecipeButton.png").default}
alt="Moderne Link Image"
width="50%"
/>
</a>
import RecipeCallout from '@site/src/components/ModerneLink';

<RecipeCallout link="https://app.moderne.io/recipes/io.moderne.ai.FixMisencodedCommentsInFrench" />

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Expand Down
32 changes: 14 additions & 18 deletions docs/recipes/ai/listallmethodsused.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,37 @@ _List all methods used in any Java source file._

## Recipe source

[GitHub](https://github.com/openrewrite/rewrite-ai-search/blob/main/src/main/java/io/moderne/ai/ListAllMethodsUsed.java), [Issue Tracker](https://github.com/openrewrite/rewrite-ai-search/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-ai-search/0.18.1/jar)
[GitHub](https://github.com/openrewrite/rewrite-ai-search/blob/main/src/main/java/io/moderne/ai/ListAllMethodsUsed.java), [Issue Tracker](https://github.com/openrewrite/rewrite-ai-search/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-ai-search/0.19.1/jar)

* groupId: org.openrewrite.recipe
* artifactId: rewrite-ai-search
* version: 0.18.1
* version: 0.19.1


## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-ai-search:0.18.1` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-ai-search:0.19.1` in your build file or by running a shell command (in which case no build changes are needed):
<Tabs groupId="projectType">
<TabItem value="gradle" label="Gradle">

1. Add the following to your `build.gradle` file:

```groovy title="build.gradle"
plugins {
id("org.openrewrite.rewrite") version("6.26.0")
id("org.openrewrite.rewrite") version("6.27.1")
}
rewrite {
activeRecipe("io.moderne.ai.ListAllMethodsUsed")
exportDatatables = true
setExportDatatables(true)
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.18.1")
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.19.1")
}
```

Expand All @@ -59,16 +59,16 @@ initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies { classpath("org.openrewrite:plugin:6.26.0") }
dependencies { classpath("org.openrewrite:plugin:6.27.1") }
}
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.18.1")
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.19.1")
}
rewrite {
activeRecipe("io.moderne.ai.ListAllMethodsUsed")
exportDatatables = true
setExportDatatables(true)
}
afterEvaluate {
if (repositories.isEmpty()) {
Expand Down Expand Up @@ -98,7 +98,7 @@ gradle --init-script init.gradle rewriteRun
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.43.0</version>
<version>5.45.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
Expand All @@ -109,7 +109,7 @@ gradle --init-script init.gradle rewriteRun
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-ai-search</artifactId>
<version>0.18.1</version>
<version>0.19.1</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -140,13 +140,9 @@ mod run . --recipe ListAllMethodsUsed

## See how this recipe works across multiple open-source repositories

<a href="https://app.moderne.io/recipes/io.moderne.ai.ListAllMethodsUsed">
<img
src={require("/static/img/ModerneRecipeButton.png").default}
alt="Moderne Link Image"
width="50%"
/>
</a>
import RecipeCallout from '@site/src/components/ModerneLink';

<RecipeCallout link="https://app.moderne.io/recipes/io.moderne.ai.ListAllMethodsUsed" />

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Expand Down
26 changes: 11 additions & 15 deletions docs/recipes/ai/research/findcodethatresembles.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ _This recipe uses two phase AI approach to find a method invocation that resembl

## Recipe source

[GitHub](https://github.com/openrewrite/rewrite-ai-search/blob/main/src/main/java/io/moderne/ai/research/FindCodeThatResembles.java), [Issue Tracker](https://github.com/openrewrite/rewrite-ai-search/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-ai-search/0.18.1/jar)
[GitHub](https://github.com/openrewrite/rewrite-ai-search/blob/main/src/main/java/io/moderne/ai/research/FindCodeThatResembles.java), [Issue Tracker](https://github.com/openrewrite/rewrite-ai-search/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-ai-search/0.19.1/jar)

* groupId: org.openrewrite.recipe
* artifactId: rewrite-ai-search
* version: 0.18.1
* version: 0.19.1

## Options

Expand All @@ -42,28 +42,28 @@ recipeList:
k: 5
```
Now that `com.yourorg.FindCodeThatResemblesExample` has been defined, activate it and take a dependency on org.openrewrite.recipe:rewrite-ai-search:0.18.1 in your build file:
Now that `com.yourorg.FindCodeThatResemblesExample` has been defined, activate it and take a dependency on org.openrewrite.recipe:rewrite-ai-search:0.19.1 in your build file:
<Tabs groupId="projectType">
<TabItem value="gradle" label="Gradle">

1. Add the following to your `build.gradle` file:

```groovy title="build.gradle"
plugins {
id("org.openrewrite.rewrite") version("6.26.0")
id("org.openrewrite.rewrite") version("6.27.1")
}
rewrite {
activeRecipe("com.yourorg.FindCodeThatResemblesExample")
exportDatatables = true
setExportDatatables(true)
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.18.1")
rewrite("org.openrewrite.recipe:rewrite-ai-search:0.19.1")
}
```
2. Run `gradle rewriteRun` to run the recipe.
Expand All @@ -79,7 +79,7 @@ dependencies {
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.43.0</version>
<version>5.45.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
Expand All @@ -90,7 +90,7 @@ dependencies {
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-ai-search</artifactId>
<version>0.18.1</version>
<version>0.19.1</version>
</dependency>
</dependencies>
</plugin>
Expand All @@ -112,13 +112,9 @@ mod run . --recipe FindCodeThatResemblesExample

## See how this recipe works across multiple open-source repositories

<a href="https://app.moderne.io/recipes/io.moderne.ai.research.FindCodeThatResembles">
<img
src={require("/static/img/ModerneRecipeButton.png").default}
alt="Moderne Link Image"
width="50%"
/>
</a>
import RecipeCallout from '@site/src/components/ModerneLink';

<RecipeCallout link="https://app.moderne.io/recipes/io.moderne.ai.research.FindCodeThatResembles" />

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Expand Down
Loading

0 comments on commit 2614d24

Please sign in to comment.