Skip to content

Commit 64ae5b6

Browse files
committed
format code
1 parent f26a8c1 commit 64ae5b6

File tree

4 files changed

+53
-39
lines changed

4 files changed

+53
-39
lines changed

core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer/PluginCallback.kt

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private fun convertToHTML(dataframeLike: Any): DataFrameHtmlData {
5454
it = it.where(dataframeLike.filter as RowValueFilter<Any?, Any?>)
5555
}
5656
it.with {
57-
background(rgb(152,251,152))
57+
background(rgb(152, 251, 152))
5858
}
5959
}
6060
.toHTML1()
@@ -118,7 +118,12 @@ object PluginCallback {
118118
val names = mutableMapOf<String, List<String>>()
119119
val expressionsByStatement = mutableMapOf<Int, List<Expression>>()
120120

121-
data class Expression(val source: String, val containingClassFqName: String?, val containingFunName: String?, val df: Any)
121+
data class Expression(
122+
val source: String,
123+
val containingClassFqName: String?,
124+
val containingFunName: String?,
125+
val df: Any
126+
)
122127

123128
fun start() {
124129
expressionsByStatement.clear()
@@ -127,7 +132,8 @@ object PluginCallback {
127132
fun save() {
128133
sessionId = 0
129134
tableInSessionId = 0
130-
var output = DataFrameHtmlData.tableDefinitions() + DataFrameHtmlData(style = """
135+
var output = DataFrameHtmlData.tableDefinitions() + DataFrameHtmlData(
136+
style = """
131137
body {
132138
font-family: "JetBrains Mono",SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;
133139
}
@@ -149,7 +155,8 @@ object PluginCallback {
149155
summary {
150156
padding: 6px;
151157
}
152-
""".trimIndent())
158+
""".trimIndent()
159+
)
153160

154161
// make copy to avoid concurrent modification exception
155162
val statements = expressionsByStatement.toMap()
@@ -174,7 +181,7 @@ object PluginCallback {
174181
${details.body}
175182
</details>
176183
<br>
177-
""".trimIndent()
184+
""".trimIndent()
178185
)
179186

180187
output += details
@@ -207,7 +214,7 @@ object PluginCallback {
207214
<summary>Input ${convertToDescription(expression.df)}</summary>
208215
${table.body}
209216
</details>
210-
""".trimIndent()
217+
""".trimIndent()
211218
)
212219
data += description
213220
}
@@ -220,7 +227,7 @@ object PluginCallback {
220227
<summary>Output ${convertToDescription(expression.df)}</summary>
221228
${table.body}
222229
</details>
223-
""".trimIndent()
230+
""".trimIndent()
224231
)
225232
data += description
226233
}
@@ -233,7 +240,7 @@ object PluginCallback {
233240
<summary>Step $i: ${convertToDescription(expression.df)}</summary>
234241
${table.body}
235242
</details>
236-
""".trimIndent()
243+
""".trimIndent()
237244
)
238245
data += description
239246
}

core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/Modify.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ class Modify : TestBase() {
670670
// SampleEnd
671671
}
672672

673+
// @TransformDataFrameExpressions
673674
@Test
674-
// @TransformDataFrameExpressions
675675
fun explodeColumnFrames() {
676676
// SampleStart
677677
val col by columnOf(

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer/PluginCallback.kt

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private fun convertToHTML(dataframeLike: Any): DataFrameHtmlData {
5454
it = it.where(dataframeLike.filter as RowValueFilter<Any?, Any?>)
5555
}
5656
it.with {
57-
background(rgb(152,251,152))
57+
background(rgb(152, 251, 152))
5858
}
5959
}
6060
.toHTML1()
@@ -118,7 +118,12 @@ object PluginCallback {
118118
val names = mutableMapOf<String, List<String>>()
119119
val expressionsByStatement = mutableMapOf<Int, List<Expression>>()
120120

121-
data class Expression(val source: String, val containingClassFqName: String?, val containingFunName: String?, val df: Any)
121+
data class Expression(
122+
val source: String,
123+
val containingClassFqName: String?,
124+
val containingFunName: String?,
125+
val df: Any
126+
)
122127

123128
fun start() {
124129
expressionsByStatement.clear()
@@ -127,29 +132,31 @@ object PluginCallback {
127132
fun save() {
128133
sessionId = 0
129134
tableInSessionId = 0
130-
var output = DataFrameHtmlData.tableDefinitions() + DataFrameHtmlData(style = """
131-
body {
132-
font-family: "JetBrains Mono",SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;
133-
}
134-
135-
:root {
136-
color: #19191C;
137-
background-color: #fff;
138-
}
139-
140-
:root[theme="dark"] {
141-
background-color: #19191C;
142-
color: #FFFFFFCC
143-
}
144-
145-
details details {
146-
margin-left: 20px;
147-
}
148-
149-
summary {
150-
padding: 6px;
151-
}
152-
""".trimIndent())
135+
var output = DataFrameHtmlData.tableDefinitions() + DataFrameHtmlData(
136+
style = """
137+
body {
138+
font-family: "JetBrains Mono",SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;
139+
}
140+
141+
:root {
142+
color: #19191C;
143+
background-color: #fff;
144+
}
145+
146+
:root[theme="dark"] {
147+
background-color: #19191C;
148+
color: #FFFFFFCC
149+
}
150+
151+
details details {
152+
margin-left: 20px;
153+
}
154+
155+
summary {
156+
padding: 6px;
157+
}
158+
""".trimIndent()
159+
)
153160

154161
// make copy to avoid concurrent modification exception
155162
val statements = expressionsByStatement.toMap()
@@ -174,7 +181,7 @@ object PluginCallback {
174181
${details.body}
175182
</details>
176183
<br>
177-
""".trimIndent()
184+
""".trimIndent()
178185
)
179186

180187
output += details
@@ -207,7 +214,7 @@ object PluginCallback {
207214
<summary>Input ${convertToDescription(expression.df)}</summary>
208215
${table.body}
209216
</details>
210-
""".trimIndent()
217+
""".trimIndent()
211218
)
212219
data += description
213220
}
@@ -220,7 +227,7 @@ object PluginCallback {
220227
<summary>Output ${convertToDescription(expression.df)}</summary>
221228
${table.body}
222229
</details>
223-
""".trimIndent()
230+
""".trimIndent()
224231
)
225232
data += description
226233
}
@@ -233,7 +240,7 @@ object PluginCallback {
233240
<summary>Step $i: ${convertToDescription(expression.df)}</summary>
234241
${table.body}
235242
</details>
236-
""".trimIndent()
243+
""".trimIndent()
237244
)
238245
data += description
239246
}

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/Modify.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ class Modify : TestBase() {
670670
// SampleEnd
671671
}
672672

673+
// @TransformDataFrameExpressions
673674
@Test
674-
// @TransformDataFrameExpressions
675675
fun explodeColumnFrames() {
676676
// SampleStart
677677
val col by columnOf(

0 commit comments

Comments
 (0)