-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new data providers from upstream
- Loading branch information
Showing
16 changed files
with
1,195 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
core/src/main/kotlin/io/github/serpro69/kfaker/provider/Hackers.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.github.serpro69.kfaker.provider | ||
|
||
import io.github.serpro69.kfaker.* | ||
import io.github.serpro69.kfaker.dictionary.* | ||
import io.github.serpro69.kfaker.provider.unique.LocalUniqueDataProvider | ||
import io.github.serpro69.kfaker.provider.unique.UniqueProviderDelegate | ||
|
||
/** | ||
* [FakeDataProvider] implementation for [YamlCategory.HACKERS] category. | ||
*/ | ||
@Suppress("unused") | ||
class Hackers internal constructor(fakerService: FakerService) : YamlFakeDataProvider<Hackers>(fakerService) { | ||
override val yamlCategory = YamlCategory.HACKERS | ||
override val localUniqueDataProvider = LocalUniqueDataProvider<Hackers>() | ||
override val unique by UniqueProviderDelegate(localUniqueDataProvider) | ||
|
||
init { | ||
fakerService.load(yamlCategory) | ||
} | ||
|
||
fun characters() = resolve("characters") | ||
fun handles() = resolve("handles") | ||
fun quotes() = resolve("quotes") | ||
} |
24 changes: 24 additions & 0 deletions
24
core/src/main/kotlin/io/github/serpro69/kfaker/provider/Mountaineering.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@file:Suppress("unused") | ||
|
||
package io.github.serpro69.kfaker.provider | ||
|
||
import io.github.serpro69.kfaker.* | ||
import io.github.serpro69.kfaker.dictionary.* | ||
import io.github.serpro69.kfaker.provider.unique.LocalUniqueDataProvider | ||
import io.github.serpro69.kfaker.provider.unique.UniqueProviderDelegate | ||
|
||
/** | ||
* [FakeDataProvider] implementation for [YamlCategory.MOUNTAINEERING] category. | ||
*/ | ||
class Mountaineering internal constructor(fakerService: FakerService) : | ||
YamlFakeDataProvider<Mountaineering>(fakerService) { | ||
override val yamlCategory = YamlCategory.MOUNTAINEERING | ||
override val localUniqueDataProvider = LocalUniqueDataProvider<Mountaineering>() | ||
override val unique by UniqueProviderDelegate(localUniqueDataProvider) | ||
|
||
init { | ||
fakerService.load(yamlCategory) | ||
} | ||
|
||
fun mountaineer(): String = resolve("mountaineer") | ||
} |
27 changes: 27 additions & 0 deletions
27
core/src/main/kotlin/io/github/serpro69/kfaker/provider/Sport.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.github.serpro69.kfaker.provider | ||
|
||
import io.github.serpro69.kfaker.* | ||
import io.github.serpro69.kfaker.dictionary.* | ||
import io.github.serpro69.kfaker.provider.unique.LocalUniqueDataProvider | ||
import io.github.serpro69.kfaker.provider.unique.UniqueProviderDelegate | ||
|
||
/** | ||
* [FakeDataProvider] implementation for [YamlCategory.SPORT] category. | ||
*/ | ||
@Suppress("unused") | ||
class Sport internal constructor(fakerService: FakerService) : YamlFakeDataProvider<Sport>(fakerService) { | ||
override val yamlCategory = YamlCategory.SPORT | ||
override val localUniqueDataProvider = LocalUniqueDataProvider<Sport>() | ||
override val unique by UniqueProviderDelegate(localUniqueDataProvider) | ||
|
||
init { | ||
fakerService.load(yamlCategory) | ||
} | ||
|
||
fun summerOlympics() = resolve("summer_olympics") | ||
fun winterOlympics() = resolve("winter_olympics") | ||
fun summerParalympics() = resolve("summer_paralympics") | ||
fun winterParalympics() = resolve("winter_paralympics") | ||
fun ancientOlympics() = resolve("ancient_olympics") | ||
fun unusual() = resolve("unusual") | ||
} |
51 changes: 51 additions & 0 deletions
51
core/src/main/kotlin/io/github/serpro69/kfaker/provider/Tarkov.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@file:Suppress("unused") | ||
|
||
package io.github.serpro69.kfaker.provider | ||
|
||
import io.github.serpro69.kfaker.* | ||
import io.github.serpro69.kfaker.dictionary.* | ||
import io.github.serpro69.kfaker.provider.unique.LocalUniqueDataProvider | ||
import io.github.serpro69.kfaker.provider.unique.UniqueProviderDelegate | ||
|
||
/** | ||
* [FakeDataProvider] implementation for [YamlCategory.TARKOV] category. | ||
*/ | ||
class Tarkov internal constructor(fakerService: FakerService) : | ||
YamlFakeDataProvider<Tarkov>(fakerService) { | ||
override val yamlCategory = YamlCategory.TARKOV | ||
override val localUniqueDataProvider = LocalUniqueDataProvider<Tarkov>() | ||
override val unique by UniqueProviderDelegate(localUniqueDataProvider) | ||
|
||
init { | ||
fakerService.load(yamlCategory) | ||
} | ||
|
||
val quests = TarkovQuests(fakerService) | ||
|
||
fun locations() = resolve("locations") | ||
fun traders() = resolve("traders") | ||
fun weapons() = resolve("weapons") | ||
fun items() = resolve("items") | ||
fun factions() = resolve("factions") | ||
fun bosses() = resolve("bosses") | ||
} | ||
|
||
class TarkovQuests internal constructor(fakerService: FakerService) : | ||
YamlFakeDataProvider<TarkovQuests>(fakerService) { | ||
override val yamlCategory = YamlCategory.TARKOV | ||
override val localUniqueDataProvider = LocalUniqueDataProvider<TarkovQuests>() | ||
override val unique by UniqueProviderDelegate(localUniqueDataProvider) | ||
|
||
init { | ||
fakerService.load(yamlCategory) | ||
} | ||
|
||
fun prapor() = resolve("quests", "prapor") | ||
fun therapist() = resolve("quests", "therapist") | ||
fun skier() = resolve("quests", "skier") | ||
fun peacekeeper() = resolve("quests", "peacekeeper") | ||
fun mechanic() = resolve("quests", "mechanic") | ||
fun ragman() = resolve("quests", "ragman") | ||
fun jaeger() = resolve("quests", "jaeger") | ||
fun fence() = resolve("quests", "fence") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# START hackers_provider_dict | ||
en: | ||
faker: | ||
hackers: | ||
characters: | ||
- Dade Murphy | ||
- Kate Libby | ||
- Emmanuel Goldstein | ||
- Ramόn Sánchez | ||
- Paul Cook | ||
- Joey Pardella | ||
- Eugene Belford | ||
- Margo Wallace | ||
- Hal | ||
- Lauren Murphy | ||
- Special Agent Richard Gill | ||
- Special Agent Ray | ||
- Special Agent Bob | ||
handles: | ||
- Zero Cool | ||
- Crash Override | ||
- Acid Burn | ||
- Cereal Killer | ||
- The Phantom Phreak | ||
- Lord Nikon | ||
- The Plague | ||
- Razor | ||
- Blade | ||
quotes: | ||
- Hack the Planet! | ||
- There is no right or wrong, only fun and boring | ||
- Mess with the best, die like the rest | ||
- This is the end, my friend. Thank you for calling | ||
- Never send a boy to do a woman's job | ||
- We have no names, man. No names. We are nameless! | ||
- Kid, don't threaten me. There are worse things than death, and uh, I can do all of them | ||
- I got a photographic memory. It's a curse! | ||
- Remember, hacking is more than just a crime. It's a survival trait | ||
- This is our world now. The world of the electron and the switch. The beauty of the baud. We exist without nationality, skin color, or religious bias. You wage wars, murder, cheat, lie to us and try to make us believe it's for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. I am a hacker and this is my manifesto. You may stop me, but you can't stop us all | ||
- God gave men brains larger than dogs so they wouldn't hump women's legs at cocktail parties | ||
- There is no right and wrong. There's only fun and boring | ||
- Never fear, I is here | ||
- It's stupid, man. It's universally stupid | ||
- Yo, I kinda feel like God | ||
- That's it, you're looking at it. He just looks slick all day | ||
- Well, it looks like I'm on top | ||
- Congratulations. No one's ever beat her before. You just made an enemy for life | ||
- Pool on the roof must have a leak | ||
- Whoa, this isn't wood shop class? | ||
- I hope you don't screw like you type | ||
- I don't play well with others | ||
- Anything else? You want me to mow the lawn? Oops forgot, New York, no grass | ||
- It's in that place where I put that thing that time | ||
- RISC is good | ||
# END hackers_provider_dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# START mountaineering_provider_dict | ||
en: | ||
faker: | ||
mountaineering: | ||
mountaineer: | ||
- Junko Tabei | ||
- Catherine Destivelle | ||
- Sasha DiGiulian | ||
- Priti Wright | ||
- Caroline Gleich | ||
- Conrad Anker | ||
- Edmund Hillary | ||
- George Mallory | ||
- Steve House | ||
- Fred Beckey | ||
# END mountaineering_provider_dict |
Oops, something went wrong.