Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ dataframes {
schema {
sourceSet = "test"
visibility = org.jetbrains.dataframe.gradle.DataSchemaVisibility.IMPLICIT_PUBLIC
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv"
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv"
name = "org.jetbrains.kotlinx.dataframe.samples.api.Repository"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Schemas {
@Test
fun useInferredSchema() {
// SampleStart
// Repository.readCSV() has argument 'path' with default value https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv
// Repository.readCSV() has argument 'path' with default value https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv
val df = Repository.readCSV()
// Use generated properties to access data in rows
df.maxBy { stargazersCount }.print()
Expand Down
6 changes: 3 additions & 3 deletions docs/StardustDocs/topics/gradle.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ the same package as file containing the annotation.
```kotlin
@file:ImportDataSchema(
"Repository",
"https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv",
"https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv",
)

import org.jetbrains.kotlinx.dataframe.annotations.ImportDataSchema
Expand All @@ -88,7 +88,7 @@ to `build/generated/dataframe/org/example` folder.
```kotlin
dataframes {
schema {
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv"
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv"
name = "org.example.Repository"
}
}
Expand All @@ -104,7 +104,7 @@ After `assemble`, the following code should compile and run:
<!---FUN useInferredSchema-->

```kotlin
// Repository.readCSV() has argument 'path' with default value https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv
// Repository.readCSV() has argument 'path' with default value https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv
val df = Repository.readCSV()
// Use generated properties to access data in rows
df.maxBy { stargazersCount }.print()
Expand Down
6 changes: 3 additions & 3 deletions docs/StardustDocs/topics/gradleReference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In the best scenario, your schema could be defined as simple as this:
dataframes {
// output: build/generated/dataframe/main/kotlin/org/example/dataframe/JetbrainsRepositories.Generated.kt
schema {
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv"
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv"
}
}
```
Expand All @@ -29,7 +29,7 @@ is derived from the directory structure with child directory `dataframe`. The na
```kotlin
schema {
// output: build/generated/dataframe/main/kotlin/org/example/dataframe/MyName.Generated.kt
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv"
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv"
name = "MyName"
}
```
Expand Down Expand Up @@ -81,7 +81,7 @@ But if you need generated files in other directory, set `src`:
dataframes {
// output: schemas/org/example/test/OtherName.Generated.kt
schema {
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv"
data = "https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv"
name = "org.example.test.OtherName"
src = file("schemas")
}
Expand Down
2 changes: 1 addition & 1 deletion docs/StardustDocs/topics/read.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import java.net.URL

DataFrame.readCSV("input.csv")
DataFrame.readCSV(File("input.csv"))
DataFrame.readCSV(URL("https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv"))
DataFrame.readCSV(URL("https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv"))
```

All `readCSV` overloads support different options.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ internal class SchemaGeneratorPluginTest {
packageName = "org.test"
}
schema {
data = URL("https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv")
data = URL("https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains%20repositories.csv")
name = "Schema"
packageName = "org.test"
}
Expand Down