Groupped tests by folders
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
var max_width = 0.0f
|
||||
<caret>for (i in 0..lineCount - 1) {
|
||||
val width = getLineWidth(i)
|
||||
if (width > max_width)
|
||||
max_width = width
|
||||
}
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
val <caret>max_width = (0..lineCount - 1)
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0f
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
val <caret>max_width = (0..lineCount - 1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0f
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
var max_width = 0.0f
|
||||
<caret>for (i in 0..lineCount - 1) {
|
||||
val width = getLineWidth(i)
|
||||
if (max_width < width) {
|
||||
max_width = width
|
||||
}
|
||||
}
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
val <caret>max_width = (0..lineCount - 1)
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0f
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
val <caret>max_width = (0..lineCount - 1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0f
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
var max_width = 0.0f
|
||||
<caret>for (i in 0..lineCount - 1) {
|
||||
val width = getLineWidth(i)
|
||||
max_width = if (width > max_width) width else max_width
|
||||
}
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
val <caret>max_width = (0..lineCount - 1)
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0f
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(lineCount: Int): Float {
|
||||
val <caret>max_width = (0..lineCount - 1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0f
|
||||
return max_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Float = TODO()
|
||||
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'max()'"
|
||||
// IS_APPLICABLE_2: false
|
||||
fun getMaxLineWidth(list: List<Float>): Float {
|
||||
var max = 0.0f
|
||||
<caret>for (item in list) {
|
||||
max = Math.max(item, max)
|
||||
}
|
||||
return max
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'max()'"
|
||||
// IS_APPLICABLE_2: false
|
||||
fun getMaxLineWidth(list: List<Float>): Float {
|
||||
val <caret>max = list.max()
|
||||
?: 0.0f
|
||||
return max
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(count: Int): Double {
|
||||
var max = 0.0
|
||||
<caret>for (i in 0..count-1) {
|
||||
max = Math.max(max, getLineWidth(i))
|
||||
}
|
||||
return max
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(count: Int): Double {
|
||||
val max = (0..count-1)
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0
|
||||
return max
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
fun getMaxLineWidth(count: Int): Double {
|
||||
val max = (0..count-1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0
|
||||
return max
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'mapIndexed{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.max()'"
|
||||
fun getMaxLineWidth(list: List<Double>): Double {
|
||||
var max = 0.0
|
||||
<caret>for ((i, item) in list.withIndex()) {
|
||||
max = Math.max(max, item * i)
|
||||
}
|
||||
return max
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'mapIndexed{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.max()'"
|
||||
fun getMaxLineWidth(list: List<Double>): Double {
|
||||
val <caret>max = list
|
||||
.mapIndexed { i, item -> item * i }
|
||||
.max()
|
||||
?: 0.0
|
||||
return max
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'mapIndexed{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.max()'"
|
||||
fun getMaxLineWidth(list: List<Double>): Double {
|
||||
val <caret>max = list
|
||||
.asSequence()
|
||||
.mapIndexed { i, item -> item * i }
|
||||
.max()
|
||||
?: 0.0
|
||||
return max
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
import java.lang.Math.max
|
||||
|
||||
fun getMaxLineWidth(count: Int): Double {
|
||||
var m = 0.0
|
||||
<caret>for (i in 0..count-1) {
|
||||
m = max(m, getLineWidth(i))
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
import java.lang.Math.max
|
||||
|
||||
fun getMaxLineWidth(count: Int): Double {
|
||||
val <caret>m = (0..count-1)
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0
|
||||
return m
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.max()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'"
|
||||
import java.lang.Math.max
|
||||
|
||||
fun getMaxLineWidth(count: Int): Double {
|
||||
val <caret>m = (0..count-1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.max()
|
||||
?: 0.0
|
||||
return m
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
var min_width = Double.MAX_VALUE
|
||||
<caret>for (i in 0..lineCount - 1) {
|
||||
val width = getLineWidth(i)
|
||||
if (width < min_width) {
|
||||
min_width = width
|
||||
}
|
||||
}
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
var min_width = Double.MAX_VALUE
|
||||
<caret>for (i in 0..lineCount - 1) {
|
||||
val width = getLineWidth(i)
|
||||
if (min_width > width) {
|
||||
min_width = width
|
||||
}
|
||||
}
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
var min_width = Double.MAX_VALUE
|
||||
<caret>for (i in 0..lineCount - 1) {
|
||||
val width = getLineWidth(i)
|
||||
min_width = if (min_width > width) min_width else width
|
||||
}
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
var min_width = Double.MAX_VALUE
|
||||
<caret>for (i in 0..lineCount - 1) {
|
||||
val width = getLineWidth(i)
|
||||
min_width = if (min_width >= width) width else min_width
|
||||
}
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
var min_width = Double.MAX_VALUE
|
||||
<caret>for (i in 0..lineCount - 1) {
|
||||
min_width = Math.min(getLineWidth(i), min_width)
|
||||
}
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.min()'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
|
||||
fun getMinLineWidth(lineCount: Int): Double {
|
||||
val <caret>min_width = (0..lineCount - 1)
|
||||
.asSequence()
|
||||
.map { getLineWidth(it) }
|
||||
.min()
|
||||
?: Double.MAX_VALUE
|
||||
return min_width
|
||||
}
|
||||
|
||||
fun getLineWidth(i: Int): Double = TODO()
|
||||
Reference in New Issue
Block a user