Compare commits

..

254 Commits

Author SHA1 Message Date
Ricky Yim
a8b8ff0acc
Merge pull request #696 from snuyanzin/mountains
Add mountains support
2022-01-12 19:11:13 +11:00
Sergey Nuyanzin
8d7036a66f
Add mountains support 2022-01-04 08:55:59 +01:00
Ricky Yim
8f2017879b
Merge pull request #661 from ilyasovalbert/fix/add_postcode
Add postcode method
2021-12-21 20:38:28 +11:00
Ricky Yim
d00e9c192a
Merge pull request #691 from chenwusi2012/issue_681_fix_LC24
Issue 681 fix lc24
2021-12-21 20:34:08 +11:00
LC24
f3da0c6885 Fixed accidental changes in another class. 2021-12-10 10:13:15 -06:00
LC24
288a935f82 Added try catch block in FakeValues.java in loadvalues() to close InputStream. 2021-12-10 10:06:00 -06:00
LC24
97688b38e6 Removed changes to master branch meant for another branch. 2021-11-21 13:53:10 -06:00
LC24
c83d329c5a Added feature randomlyNull. added tests for randomlyNull. Add javadocs for randomlyNull. 2021-11-21 13:11:37 -06:00
albert
89a63c9f30 Add postcode method 2021-10-06 15:13:49 +08:00
Ricky Yim
6f72cb24c5
Merge pull request #493 from L-Evg/fb_Photography_faker
Photography faker.
2021-01-11 16:22:40 +11:00
Ricky Yim
f5efa7048f
Merge pull request #577 from SoniaOrlikowska/fix-issue-575
Fix issue 575. Apostrophe added to regex in StarCraftTest
2021-01-11 16:20:52 +11:00
Ricky Yim
1a592a63d7
Merge pull request #586 from coldexpression/develop
EnglandFootBall Faker
2021-01-11 16:16:51 +11:00
Ricky Yim
4f1dfa9edb
Merge pull request #597 from rweisleder/patch-1
Clarify documentation of DateAndTime.birthday(..)
2021-01-11 16:12:04 +11:00
Roland Weisleder
d8c83fc341
Clarify documentation of DateAndTime.birthday(..)
When using DateAndTime.birthday(..) it's not obvious that the generated
birthday depends on the current day. This leads to the wrong assumption
that calling the method with the same random seed creates the same
birthday with every call. However, the method produces different
results whether it's called in 2020 or 2021.

This commit adds clarification to the method's Javadoc.
2021-01-05 17:02:41 +01:00
scs9802
23c1eb238f remove regular expression 2020-11-09 21:48:26 +09:00
Lozovan Evgeniy
1d884a03d6 Photography Faker, minor additions. 2020-11-09 14:31:55 +03:00
Lozovan Evgeniy
b38dbdc690 Photography Faker, minor renamings. 2020-11-09 14:12:40 +03:00
scs9802
ac8203fe51 fixed matchesRegularExpression. 2020-11-09 17:29:59 +09:00
scs9802
80693a0dfb fixed line 93 englandfootball.yml 2020-11-09 16:57:57 +09:00
scs9802
17450213df test pom.xml 2020-11-09 16:40:15 +09:00
Evgeniy Lozovan
1b00a21437
Merge branch 'master' into fb_Photography_faker 2020-11-09 10:38:58 +03:00
Evgeniy Lozovan
38846785ee
Update src/main/resources/ru.yml
Co-authored-by: Patrice De Saint Steban <patrice@desaintsteban.fr>
2020-11-09 10:31:50 +03:00
Evgeniy Lozovan
2cab95c724
Update src/main/resources/en/photography.yml
Co-authored-by: Patrice De Saint Steban <patrice@desaintsteban.fr>
2020-11-09 10:31:39 +03:00
Evgeniy Lozovan
308358cc29
Update src/main/java/com/github/javafaker/Photography.java
Co-authored-by: Patrice De Saint Steban <patrice@desaintsteban.fr>
2020-11-09 10:31:27 +03:00
scs9802
c4a5fe29bb import MatchesRegularExpression package, fix pom.xml 2020-11-09 15:34:00 +09:00
scs9802
41c35cedfc fixed EnglandFootBallTest.java 2020-11-09 12:07:34 +09:00
scs9802
59fa142bb0 fixed englandfootball.yml 2020-11-09 12:06:59 +09:00
scs9802
562ab3ed74 Add leagues, teams to resource file. 2020-11-09 01:19:14 +09:00
scs9802
295382ee13 Add englandfootball.yml resource file reference. 2020-11-09 01:16:22 +09:00
scs9802
b39a546852 Add EnglandFootBall content class, add utility methods to Faker. 2020-11-09 01:14:40 +09:00
scs9802
01f5c45c57 Add league, team tests for EngalndFootBall fakes. 2020-11-09 01:10:51 +09:00
scs9802
98863591e3 Update README.md with EnglandFootBall into. 2020-11-09 01:05:23 +09:00
Sonia Orlikowska
a41d2bf368 Fix issue 575. Apostrophe added to regex in StarCraftTest 2020-10-04 20:34:46 +02:00
Ricky Yim
b60f23a54a
Merge pull request #491 from mpaauw/starcraft-faker
StarCraft Faker
2020-08-19 19:05:27 +10:00
Ricky Yim
6312699f5e
Merge pull request #567 from TomerFi/add-sip-fake-data
feature: added sip data generator.
2020-08-19 18:57:33 +10:00
Ricky Yim
aaaf8d9e47
Merge branch 'master' into starcraft-faker 2020-08-19 18:55:53 +10:00
Ricky Yim
4fce1fad9e
Merge pull request #569 from RockyMM/master
Updating snakeyaml to 1.26 to solve #470
2020-08-19 18:48:54 +10:00
Rade Martinović
d1b62ea683
Merge pull request #1 from RockyMM/#460_CVE-2017-18640
Updating snakeyaml to 1.26 to solve #470
2020-08-04 13:07:33 +02:00
Tomer Figenblat
0bc4a58efd feature(faker-class): added faker class, config file and test cases for generating sip data. 2020-08-03 00:02:35 +03:00
Rade Martinović
4a0f245b23
Updating snakeyaml to 1.26 to solve #460
https://bitbucket.org/asomov/snakeyaml/issues/377/allow-configuration-for-preventing-billion
2020-07-22 12:22:10 +02:00
Ricky Yim
59d661eaae
Merge pull request #563 from jmizv/562-CountryNameCoteDIvoreIsBroken
Fix 562: country name of Côte D'Ivore is broken in resource file
2020-07-17 18:07:01 +10:00
jmizv
300d4ae315 562: country name of Côte D'Ivore is broken in resource file 2020-07-08 22:24:55 +02:00
Ricky Yim
c992e55aa8
Merge pull request #561 from inigodm/klingon
Added klingon quotes to StarTrek class
2020-07-06 18:26:10 +10:00
Ricky Yim
1d8d582f96
Merge pull request #496 from slisaasquatch/better-hex-2
More efficient hex generation
2020-07-06 18:21:11 +10:00
Ricky Yim
f4a3ace79c
Merge pull request #477 from vikramsinghchandel/bug/additional_bank_bic
Bug/additional bank bic
2020-07-06 18:17:03 +10:00
Ricky Yim
0aad188a0e
Merge pull request #473 from vikramsinghchandel/master
PR for updating README.md to include Medical dataset
2020-07-06 18:13:42 +10:00
Ricky Yim
69a2a3b927
Merge pull request #472 from pehguerra/add-animal-ptBr
added animal-ptBr in YAML file
2020-07-06 18:11:53 +10:00
Ricky
9842580799 Merge branch 'master' of github.com:DiUS/java-faker 2020-07-06 18:09:00 +10:00
Ricky
8917e6bab6 Merge branch 'BreakpointsCA-patch-1' 2020-07-06 18:08:30 +10:00
Ricky
121afd3396 fix for FakerIT 2020-07-06 18:08:21 +10:00
Ricky
78a0e14885 Merge branch 'patch-1' of https://github.com/BreakpointsCA/java-faker into BreakpointsCA-patch-1 2020-07-06 18:05:07 +10:00
Ricky
6b78058d64 limiting number of jdks 2020-07-06 18:03:31 +10:00
Ricky Yim
37f134222e
Merge pull request #488 from LuborVitek/patch-1
Create cs-CZ.yml
2020-07-06 18:03:02 +10:00
Ricky
a123097223 Merge branch 'manudevelopia-master' 2020-07-06 17:57:29 +10:00
Ricky
b51bafda5a cleaned up commits 2020-07-06 17:55:49 +10:00
Ricky
97e1619de4 update jdks in travis 2020-07-06 17:47:31 +10:00
Ricky
21e640e248 Merge branch 'JinquanPeng-worker_peng' 2020-07-06 17:46:58 +10:00
Ricky
a48f018f63 updated formatting 2020-07-06 17:46:35 +10:00
Ricky
4ccb4e3807 Merge branch 'worker_peng' of https://github.com/JinquanPeng/java-faker into JinquanPeng-worker_peng 2020-07-06 17:41:10 +10:00
Ricky
11bd087a17 Merge branch 'irakatz-438' 2020-07-06 17:40:37 +10:00
Ricky
3f9d548891 added disease 2020-07-06 17:40:24 +10:00
Ricky
3a11611c62 updating to xenial 2020-07-06 17:30:49 +10:00
inigo
3aa5cf2d9c Use hamcrest matchers to be consistent with the rest of the test 2020-07-01 15:28:03 +02:00
Ricky Yim
47e298a086
Merge pull request #527 from JinquanPeng/worker_peng3
Fixed issue 497
2020-07-01 22:11:29 +10:00
Ricky Yim
35bbd661ac
Merge pull request #518 from irakatz/real_483
Fix Bojack Horseman feature
2020-07-01 22:10:21 +10:00
Ricky Yim
102807f302
Merge branch 'master' into 438 2020-07-01 21:57:04 +10:00
Ricky Yim
ff62aee256
Merge pull request #534 from irakatz/533
Add some test cases to increase coverage
2020-07-01 19:53:12 +10:00
Ricky Yim
5223bd80c6
Merge branch 'master' into fb_Photography_faker 2020-07-01 19:50:44 +10:00
Ricky Yim
b19bf8a881
Merge pull request #512 from SSSSam141/master
Add some lastnames with ñ for "es" and "es-mx"
2020-07-01 19:47:44 +10:00
Ricky Yim
a4e1e6c341
Merge branch 'master' into real_483 2020-07-01 19:46:38 +10:00
Ricky Yim
078b5951c4
Merge pull request #519 from irakatz/482
Fix Basketball feature
2020-07-01 19:41:31 +10:00
Ricky Yim
4618339f2a
Merge pull request #559 from Tavo5691/issue-538
Fixed typo in French city name - Dunkerque
2020-07-01 19:27:27 +10:00
inigo
9cdc12b892 Added klingon quotes to StarTrek class 2020-06-29 15:13:32 +02:00
Tavo5691
91f9823a95 Fixed typo in French city name - Dunkerque 2020-06-22 00:09:40 -03:00
irakatz
b2b31e2433
Update DateAndTimeTest.java 2020-05-27 12:49:14 +08:00
irakatz
bbb453920b
Update DateAndTimeTest.java 2020-05-27 12:38:56 +08:00
irakatz
480c867746
Update DateAndTimeTest.java 2020-05-27 12:33:26 +08:00
irakatz
3ac95c9495 Fix 533 2020-05-27 12:21:24 +08:00
irakatz
645e001b23 Fix 533 2020-05-27 12:19:40 +08:00
peng
aab9863dde fix issue 497 2020-05-18 23:02:43 +08:00
peng
2183c3fd8d fixed issue 468 2020-05-15 10:13:31 +08:00
peng
048cbfc8aa fixed issue 468 2020-05-15 09:56:18 +08:00
Lozovan Evgeniy
db37bc0108 Photography Faker, minor JavaDocs change-2. 2020-05-14 12:39:20 +03:00
irakatz
9f5c626e89
Update BasketballTest.java 2020-05-09 09:30:51 +08:00
irakatz
c93aba5869 Merge branch '482' of https://github.com/irakatz/java-faker into 482 2020-05-09 09:15:47 +08:00
irakatz
c0d4a5265f Fix enfile
Some small fault
2020-05-09 09:04:36 +08:00
irakatz
d066831162
Update BasketballTest.java 2020-05-09 08:48:49 +08:00
irakatz
d45e9a6963 Merge branch '482' of https://github.com/irakatz/java-faker into 482 2020-05-09 08:39:52 +08:00
irakatz
c1456074b0 Update EnFile.java 2020-05-09 08:36:14 +08:00
irakatz
e4db7cc7d6
Update BasketballTest.java 2020-05-09 02:07:48 +08:00
irakatz
b869f65cba
Update Basketball.java 2020-05-09 02:04:03 +08:00
irakatz
2699acb4b0
Update Basketball.java 2020-05-09 01:59:04 +08:00
irakatz
43ee974951 Fix 438 2020-05-09 01:58:31 +08:00
irakatz
b8fbf42d12
Update BojackHorseman.java 2020-05-09 01:57:57 +08:00
irakatz
5fc804da6c
Update Basketball.java 2020-05-09 01:50:34 +08:00
irakatz
a5a63b7f23
Update BojackHorseman.java 2020-05-09 01:48:41 +08:00
irakatz
3b6554c359
Update BojackHorseman.java 2020-05-09 01:44:41 +08:00
irakatz
db07d31848 Fix 482 2020-05-09 01:40:56 +08:00
irakatz
8e4cf80059 Continue fix 483 2020-05-09 01:29:59 +08:00
irakatz
485c54df42 Fix 483 2020-05-09 01:21:21 +08:00
Lozovan Evgeniy
57ad4c145c Photography Faker, minor JavaDocs change. 2020-05-08 18:59:28 +03:00
SSSSam141
dc5a981226
Update es.yml 2020-05-08 15:01:32 +08:00
SSSSam141
417adcfc40
Update es.yml 2020-05-08 14:55:20 +08:00
SSSSam141
3575379201
Update es.yml 2020-05-08 14:49:39 +08:00
SSSSam141
25ce43cb21
Update es-MX.yml 2020-05-08 14:40:14 +08:00
slisaasquatch
29d0778430 More efficient hex generation 2020-05-01 17:39:26 -07:00
Lozovan Evgeniy
136965578f Photography Faker, added some JavaDocs. 2020-04-20 10:53:38 +03:00
Lozovan Evgeniy
63ed3212de Photography Faker, version 0. 2020-04-20 10:44:44 +03:00
Evgeniy Lozovan
c93762cb24
Merge pull request #1 from DiUS/master
Sync with original repo.
2020-04-20 10:21:45 +03:00
mpaauw
e09c6d4d31 Cleanup. 2020-04-12 09:55:37 -07:00
mpaauw
699d2e52e3 Update README.md with StarCraft into. 2020-04-12 09:51:15 -07:00
mpaauw
9050336b44 Add unit tests for StarCraft fakes. 2020-04-12 09:50:57 -07:00
mpaauw
f32790fda7 Add StarCraft content class, add utility methods to Faker. 2020-04-12 09:50:39 -07:00
mpaauw
13434940d3 Add starcraft.yml resource file reference. 2020-04-12 09:49:39 -07:00
mpaauw
d9a2cec55b Add units, buildings to resource file. 2020-04-12 09:49:11 -07:00
mpaauw
7da213429d Add starcraft resources file, complete with character and planet names. 2020-04-10 23:34:50 -07:00
LuborVitek
558f685d28
Create cs-CZ.yml 2020-03-25 19:06:20 +01:00
Ricky Yim
1850b033d4
Merge pull request #485 from wetHands04/coin-faker
Added new Coin class
2020-03-17 14:16:29 +11:00
Ilya Pantsir
0bc9266b94 Added CoinTest 2020-03-14 20:31:18 +02:00
Ilya Pantsir
642bfbb61a Added String test 2020-03-14 20:03:53 +02:00
Ilya Pantsir
b646ac9a90 Added Coin to README 2020-03-14 19:55:16 +02:00
Ilya Pantsir
abacfd4188 Added new coin class 2020-03-14 19:52:44 +02:00
Ronald Holshausen
97af4f0366
Merge pull request #478 from nicoperrony/master
Add Kaamelott's characters & quotes
2020-03-02 16:29:17 +11:00
nicoperrony
4cc09ef101 Add more quotes 2020-02-21 21:15:42 +01:00
nicoperrony
2b1d0e4c52 Add Kaamelott's characters & quotes 2020-02-21 20:34:33 +01:00
vikram
13e4068490 Code Cleanup 2 (#1907) 2020-02-21 13:22:51 +01:00
vikram
9cbc2f2b65 Added additional 775 swift bic codes (#1907) 2020-02-21 13:16:32 +01:00
vikram
49eb6ce034 Code Cleanup (#1907) 2020-02-21 13:08:48 +01:00
vikram
0c9d5412bd Code Cleanup 2020-02-12 19:31:36 +01:00
vikram
0ae869d23f Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	src/main/java/com/github/javafaker/Faker.java
#	src/main/resources/en.yml
#	src/test/java/com/github/javafaker/MedicalTest.java
2020-02-12 19:29:25 +01:00
vikram
28fbe55c7b updated README.md to list Medical faker 2020-02-12 19:14:13 +01:00
Ricky Yim
3e08569a75
Update README.md 2020-02-11 19:52:30 +11:00
Ricky
a262c547df [maven-release-plugin] prepare for next development iteration 2020-02-11 06:33:53 +11:00
Ricky
e23d6067c8 [maven-release-plugin] prepare release javafaker-1.0.2 2020-02-11 06:33:43 +11:00
pedrohsguerra
dfe37bb2fd added animal-ptBr in YAML file 2020-02-10 16:17:23 -03:00
Ricky Yim
9170081d69 Merge pull request #460 from BlankSergey/fix-birthday
Fix birthday(): add currentMonth and currentDay
2020-02-10 19:09:51 +11:00
Ricky Yim
28d1ddfa91 Merge pull request #422 from TatsianaLuchonak/Expression_fix
Update arguments parsing from expressions
2020-02-10 19:07:10 +11:00
Tatsiana Luchonak
8fe21b5009 Update arguments parsing from expressions/ add tests to increase coverage 2020-02-10 10:13:07 +03:00
Ricky Yim
1d50d2966b
Merge pull request #456 from SeriyBg/uk-countries
Add countries for ukrainian language
2020-02-09 09:57:02 +11:00
Ricky Yim
ec7c9d6aec
Merge pull request #469 from fr4nk/fix-fakeValuesServiceTest-for-locales
fix FakeValuesServiceTest / pastDate + futureDate for local test
2020-02-09 09:39:27 +11:00
Ricky Yim
ac3a206b2c Merge pull request #467 from sl-slaing/master
Support injection of FakeValuesService
2020-02-09 09:35:37 +11:00
Frank Mattes
9cfdde18e8 FakeValuesServiceTest fails when run in workspace with Locale other than en
- date-format doesn't match e.g. in Locale de
- add Locale.ENGLISH to SimpleDateFormat initialization
2020-02-06 13:41:10 +01:00
Simon Laing
7ac7e53aa2 Support injection of FakeValuesService
To permit discrimination/variation of the values Faker provides
2020-01-14 07:51:05 +00:00
sergey
c5fbba8e73 Add to birthday() currentMonth and currentDay because it is tests sometimes failed with incorrect date
Add to birthday() currentMonth and currentDay because it is tests sometimes failed with incorrect date

Fix test coverage
2019-11-21 17:02:55 +03:00
Ricky Yim
7a6e99fb73
Merge pull request #452 from SeriyBg/master
fix type in space.yaml with missing quote mark
2019-11-08 06:18:42 +11:00
Ricky Yim
9fea1fa953
Merge pull request #434 from egoetschalckx/add-programming-language
Add programming language
2019-11-08 06:15:00 +11:00
Ricky Yim
3b22e03965
Merge pull request #432 from tcsizmadia/hu-postcode-by-state
Address#zipCodeByState() support for hu Locale
2019-11-08 06:11:39 +11:00
BreakpointsCA
2207aa0d7d
Bug fix in FakeValuesService setup 2019-10-24 16:14:11 -04:00
Serge Bishyr
0c2d27bcd0 add ukrainian countries 2019-10-22 15:13:56 +03:00
Ricky Yim
fce6c8bf4b
Merge pull request #443 from EmmanuelVinas/master
Fixed regex on Android
2019-10-18 06:41:22 +11:00
Serge Bishyr
a81d210c34 typo with quote mark for italian Bronze 2019-10-13 20:02:19 +03:00
Serge Bishyr
4818b5d54d fix type in space.yaml with missing quote mark 2019-10-13 19:27:38 +03:00
Ricky Yim
e88a3edbfc
Merge pull request #451 from JiZoH/patch-1
adding french animals
2019-10-09 19:56:33 +11:00
JiZoH
10e9cd9750
adding french animals 2019-10-08 16:37:11 +02:00
Emmanuel Vinas
e939101192 Fixed regex on Android 2019-09-26 09:36:36 +02:00
Eric Goetschalckx
c30bef0050 trigger a build 2019-09-12 10:18:26 -04:00
Eric Goetschalckx
9f5064b20f add tests to NumberTest for coverage check 2019-09-12 08:44:29 -04:00
Eric Goetschalckx
a4cf5b3822 Merge remote-tracking branch 'upstream/master' into add-programming-language 2019-09-11 12:38:21 -04:00
Eric Goetschalckx
5546a46f9a fix hu state_abbr test failure 2019-09-11 12:36:01 -04:00
Tamas Csizmadia
7c1f999310 Put state abbreviations into quotes to fix ClassCastException error on JDK8. 2019-09-10 10:18:54 +02:00
Tamas Csizmadia
731915b5f0 Added 'hu' to Supported Locales 2019-09-09 18:51:07 +02:00
Tamas Csizmadia
19b3557f64 Added test for Address#zipCodeByState() for 'hu' Locale 2019-09-09 18:49:35 +02:00
Tamas Csizmadia
914f2c54db Added address.postcode_by_state section to hu.yml 2019-09-09 18:43:17 +02:00
Ricky Yim
f2835c9dc5
Merge pull request #427 from egoetschalckx/add-aqua-teen-hunger-force
add AquaTeenHungerForce faker
2019-09-01 17:01:18 +10:00
Eric Goetschalckx
6df096ceaf add ProgrammingLanguage faker 2019-08-28 14:57:00 -04:00
Eric Goetschalckx
7753b39a83 add AquaTeenHungerForce faker 2019-08-28 08:40:11 -04:00
Ricky Yim
33f96e1292
Merge pull request #421 from ubulem/master
Add methods for missing Harry Potter entries
2019-08-20 20:34:11 +10:00
ubulem
e481bde9cb Add methods for missing Harry Potter entries 2019-08-20 15:10:32 +06:00
Ricky
5f357f7e80 updated relationships test 2019-08-18 19:10:45 +10:00
Ricky
82b06497c7 added more tests in relationship 2019-08-18 17:57:23 +10:00
Ricky
67198793fc fixed test to test right method 2019-08-18 17:47:50 +10:00
Ricky
dddc00fbc7 added more aviation tests 2019-08-18 17:39:31 +10:00
Ricky
9713dd3e64 adding business test 2019-08-17 20:38:00 +10:00
Ricky
1813317f25 updated the coveralls plugin command 2019-08-17 20:29:46 +10:00
Ricky
f11c05875c Merge remote-tracking branch 'origin/master' 2019-08-17 20:25:48 +10:00
Ricky
bff3aad864 added the coveralls key 2019-08-17 20:24:33 +10:00
Ricky Yim
7efc2efc99 Update issue templates 2019-08-17 19:02:14 +10:00
Ricky Yim
4e1b9906fe
Update README.md 2019-08-17 18:58:40 +10:00
Ricky Yim
49e4487e23
Merge pull request #420 from DiUS/add-code-of-conduct-1
Create CODE_OF_CONDUCT.md
2019-08-17 18:55:58 +10:00
Ricky Yim
f2420977b3
Update CODE_OF_CONDUCT.md 2019-08-17 18:55:31 +10:00
Ricky Yim
7d14134910
Create CODE_OF_CONDUCT.md 2019-08-17 18:54:49 +10:00
Ricky Yim
f1ad0706a2 Update issue templates 2019-08-17 18:52:39 +10:00
Ricky
2c7d794702 [maven-release-plugin] prepare for next development iteration 2019-08-17 18:49:54 +10:00
Ricky
6eab116bc1 [maven-release-plugin] prepare release javafaker-1.0.1 2019-08-17 18:49:45 +10:00
Ricky
d7560762a5 fix for numbers 2019-08-17 18:45:22 +10:00
Ricky Yim
bc6abc6b1d
Merge pull request #413 from tcsizmadia/hu-locale
Added hu locale support
2019-08-17 18:04:16 +10:00
Ricky Yim
e6eca575ce
Merge pull request #369 from CodeAndChoke/elder_scrolls_quote
Elder scrolls quote
2019-08-17 18:01:22 +10:00
Ricky Yim
115dbabaea
Merge pull request #416 from egoetschalckx/add-nation
add Nation class
2019-08-17 15:26:34 +10:00
Ricky Yim
31d9a5f2f3
Merge pull request #417 from egoetschalckx/fix-issue-396
Fix for issue #396
2019-08-17 15:24:58 +10:00
Ricky Yim
54149209be
Merge branch 'master' into add-nation 2019-08-17 14:56:17 +10:00
Ricky Yim
1ebdf4f9db
Merge pull request #418 from valfirst/clean-up
Clean up
2019-08-17 14:54:06 +10:00
Ricky Yim
5c5c26414c
Merge pull request #419 from egoetschalckx/add-dune
add Dune class
2019-08-17 14:52:38 +10:00
Ricky Yim
090ee32094
Merge pull request #415 from egoetschalckx/add-food-fakers
add food fakers
2019-08-16 21:26:30 +10:00
Eric Goetschalckx
458429c291 add Dune faker 2019-08-15 11:04:01 -04:00
Eric Goetschalckx
0e4a4b8af5 add FakerIT test and README.md update 2019-08-14 15:03:21 -04:00
Eric Goetschalckx
f5ca53f390 match valfirst regex fix for LeageOfLegends.champion() test 2019-08-13 09:22:06 -04:00
Valery Yatsynovich
12be503e87
Fix LeagueOfLegendsTest.champion: champion names may contain ampersands (e.g. Nunu & Willump) 2019-08-13 16:16:26 +03:00
Valery Yatsynovich
0002cc24a7
Fix FoodTest.ingredient: ingredient names may contain dashes (e.g. Sun-Dried Tomatoes) 2019-08-13 16:03:48 +03:00
Eric Goetschalckx
9acf01cfbd fix failing fr-ch phoneNumber test 2019-08-13 09:00:22 -04:00
Valery Yatsynovich
59fb7208e5
Remove exlicit array creation for varargs parameters 2019-08-13 15:55:55 +03:00
Valery Yatsynovich
9c5c00f169
Replace StringBuilder with String concatenation 2019-08-13 15:53:22 +03:00
Valery Yatsynovich
bf6644c30c
Replace for loop with foreach 2019-08-13 15:51:19 +03:00
Valery Yatsynovich
082feffeba
Fix redundant Class.getClass() invocation 2019-08-13 15:44:06 +03:00
Valery Yatsynovich
a7129622e2
Make inner private class static 2019-08-13 15:32:24 +03:00
Valery Yatsynovich
dfc446a73e
Remove redundant character escapes from regexp-s 2019-08-13 15:31:44 +03:00
Valery Yatsynovich
06e957721f
Remove unused imports 2019-08-13 15:28:13 +03:00
Eric Goetschalckx
92c6458d1f fix failing LeagueOfLegends champion test 2019-08-13 08:12:10 -04:00
Eric Goetschalckx
c8442af802 fix failing o-negative bloodgroup test 2019-08-13 08:01:52 -04:00
Eric Goetschalckx
3a39c2f22e add .setScale() to Number.numberBetween(long, long) 2019-08-12 15:09:08 -04:00
Eric Goetschalckx
60e807c1a4 fix regex for Country.currency() 2019-08-12 13:41:28 -04:00
Eric Goetschalckx
014cc70488 Merge branch 'master' into add-nation 2019-08-12 12:56:25 -04:00
Eric Goetschalckx
ef6662b97f add Nation.java and NationTest.java 2019-08-12 12:53:17 -04:00
Eric Goetschalckx
41584e3fb4 change O Negative blood group to match others 2019-08-12 08:49:55 -04:00
Eric Goetschalckx
1fb0ebbd2c fix bad minus sign test in NameTest.testBloodGroup() 2019-08-12 08:37:41 -04:00
Eric Goetschalckx
06dc8e797c Merge branch 'master' into add-food-fakers 2019-08-09 13:13:24 -04:00
Eric Goetschalckx
f2de7a3f1d fix dish() test for non a-z chars 2019-08-09 13:07:34 -04:00
Eric Goetschalckx
279fbf7503 add nation (initial) 2019-08-09 11:56:25 -04:00
Eric Goetschalckx
e55d87f6fa add food fakers
Add dish(), fruit(), vegetable(), and sushi()
2019-08-09 09:59:21 -04:00
Ricky Yim
625bb3b69c
Merge pull request #411 from 4sujittiwari/master
Added bloodGroup to the Name Faker Service Generation #386
2019-08-09 18:08:43 +10:00
Ricky Yim
60f3611e3a
Merge pull request #412 from TatsianaLuchonak/Lorem_fix
Fix Lorem.character(s) with includeUppercase param
2019-08-09 18:07:53 +10:00
Tamas Csizmadia
1449413322 Fixed empty entry in company.name section (caused unresolvable Company.name placeholders) 2019-08-07 18:08:16 +02:00
Tamas Csizmadia
dd84b86833 Merge remote-tracking branch 'upstream/master' into hu-locale 2019-08-07 08:52:37 +02:00
Tamas Csizmadia
42beeba9bd hu-locale: Added food section to hu.yml 2019-08-07 08:39:54 +02:00
Tamas Csizmadia
c2f08bc069 hu-locale: Added music section to hu.yml 2019-08-06 18:14:14 +02:00
Tamas Csizmadia
7402398840 hu-locale: Added space section to hu.yml 2019-08-06 18:06:00 +02:00
Tamas Csizmadia
63b5ff7c22 hu-locale: Added commerce section to hu.yml 2019-08-06 18:03:11 +02:00
Tamas Csizmadia
8b7078184f hu-locale: Added university section to hu.yml 2019-08-06 17:30:38 +02:00
Tamas Csizmadia
1b6ef21989 hu-locale: Added phone section to hu.yml 2019-08-06 17:24:27 +02:00
Tamas Csizmadia
18be4f847c hu-locale: Added color section to hu.yml 2019-08-06 16:45:51 +02:00
Tamas Csizmadia
97011231b8 hu-locale: Added coin section to hu.yml 2019-08-06 16:40:51 +02:00
Tamas Csizmadia
bf3174c76d hu-locale: Fix in city section in hu.yml 2019-08-06 16:39:52 +02:00
Tatsiana Luchonak
2e553c40ed Fix Lorem.character(s) with includeUppercase) param 2019-08-06 11:22:16 +03:00
Sujit Kumar
c710c49a8a Fixed Currency Test regex for special characters in some of the currency 2019-08-06 12:21:49 +05:30
Tamas Csizmadia
f0e5f9db92 hu-locale: Added name entries to hu.yml 2019-08-06 08:47:07 +02:00
Tamas Csizmadia
e497d29802 hu-locale: Added book entries to hu.yml 2019-08-05 18:20:17 +02:00
Sujit Kumar
b92df042ee Added name yaml file for getting the blood groups 2019-08-05 20:15:27 +05:30
Sujit Kumar
8ce9308bc1 Added bloodGroup to the Faker Service Generation #386 2019-08-05 20:06:25 +05:30
Tamas Csizmadia
2861d62566 hu-locale: Added internet entries to hu.yml 2019-08-05 08:22:27 +02:00
Tamas Csizmadia
2d72acd318 hu-locale: Added animal entries to hu.yml 2019-08-03 23:39:30 +02:00
Tamas Csizmadia
38cb5d2d16 hu-locale: Added compass entries to hu.yml 2019-08-02 18:42:22 +02:00
Tamas Csizmadia
3e0abda297 hu-locale: Added company entries to hu.yml 2019-08-02 17:08:12 +02:00
Tamas Csizmadia
5d6a86da3f hu-locale: Added address entries to hu.yml 2019-08-02 16:52:33 +02:00
Ricky Yim
ea64b8b49d
Merge pull request #410 from DiUS/refreshed_resources
updated resource files
2019-08-02 18:52:33 +10:00
Long Nguyen
3b3bc3ad5a Added a lots of elder scrolls quote 2019-03-10 02:21:36 +01:00
manudevelopia
617db0c198 test: add barcode fake data generator test 2019-03-03 18:22:54 +01:00
manudevelopia
6b2e98a56d feat: add barcode fake data generator 2019-03-03 18:22:17 +01:00
Vikram
42ee5d1009 Added custom jar resources 2018-10-15 15:33:53 +05:30
Vikram
80f47403cb Updated Medical Faker Test removed static tests 2018-09-27 11:08:01 +05:30
Vikram
4806a44000 Modified regular expression for Hospital Name for bigger lengths 2018-09-25 21:22:49 +05:30
Vikram
39eb326ebe Modified regular expression for Hospital Name 2018-09-25 21:13:26 +05:30
Vikram
6303ef3ba6 Modified regular expression for Hospital Name 2018-09-25 17:54:18 +05:30
Vikram
ea463fed2b Modified regular expression for Hospital Name 2018-09-25 16:34:52 +05:30
Vikram
414c2c8a7d Modified regex for Medical Symptom match 2018-09-25 15:44:11 +05:30
Vikram
6d64f8538b Added Code and iml file for Medical data faker
Contains following fakers
-- Hospital Name
-- Disease
-- Medicine
-- Symptoms
2018-09-24 10:55:51 +05:30
106 changed files with 3328 additions and 227 deletions

25
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Code to reproduce
**Expected behavior**
A clear and concise description of what you expected to happen.
**Versions:**
- OS: [e.g. OSX]
- JDK
- Faker Version [e.g. 22]
**Additional context**
Add any other context about the problem here.

View File

@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

View File

@ -1,17 +1,17 @@
language: java
dist: trusty
dist: xenial
jdk:
- oraclejdk8
- openjdk7
- openjdk10
- oraclejdk11
sudo: true
script: "mvn verify failsafe:integration-test failsafe:verify"
script: mvn verify failsafe:integration-test failsafe:verify
branches:
except:
- travis
notifications:
email: false
after_success:
- mvn clean cobertura:cobertura coveralls:cobertura
- mvn clean cobertura:cobertura coveralls:report
env:
global:
secure: GIdF3itH9owJXPEb/ri984853yRRIDeWbSZW7yMh6XOymGWAi0+3fGssBbHqjS/s3QgiDhnrKfDjF7UhHE1aeYCxgHM5QGOjfHUhOKevhUE4u0h4ysFS4wbh7zYODMzxdFpiKwdnNF+TvMctIReH5IVDu8gUxbNrcSXN6PQgvlM=

76
CODE_OF_CONDUCT.md Normal file
View File

@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at rickyyim AT gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

View File

@ -17,7 +17,7 @@ In pom.xml, add the following xml stanza between `<dependencies> ... </dependenc
<dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>1.0.0</version>
<version>1.0.2</version>
</dependency>
```
@ -25,7 +25,7 @@ For gradle users, add the following to your build.gradle file.
```groovy
dependencies {
implementation 'com.github.javafaker:javafaker:1.0.0'
implementation 'com.github.javafaker:javafaker:1.0.2'
}
```
@ -56,37 +56,45 @@ See [CONTRIBUTING.md](https://github.com/DiUS/java-faker/blob/master/CONTRIBUTIN
Fakers
-----
* Address
* Ancient
* Animal
* Address
* App
* Aqua Teen Hunger Force
* Artist
* Avatar
* Back To The Future
* Aviation
* Basketball
* Beer
* Bojack Horseman
* Book
* Bool
* Business
* ChuckNorris
* Cat
* Code
* Coin
* Color
* Commerce
* Company
* Crypto
* DateAndTime
* Demographic
* Disease
* Dog
* DragonBall
* Dune
* Educator
* Esports
* EnglandFootBall
* File
* Finance
* Food
* Friends
* FunnyName
* GameOfThrones
* Gender
* Hacker
* HarryPotter
* Hipster
@ -96,6 +104,7 @@ Fakers
* IdNumber
* Internet
* Job
* Kaamelott
* LeagueOfLegends
* Lebowski
* LordOfTheRings
@ -103,10 +112,12 @@ Fakers
* Matz
* Music
* Name
* Nation
* Number
* Options
* Overwatch
* PhoneNumber
* Photography
* Pokemon
* Princess Bride
* Relationship Terms
@ -114,8 +125,10 @@ Fakers
* Robin
* RockBand
* Shakespeare
* Sip
* SlackEmoji
* Space
* StarCraft
* StarTrek
* Stock
* Superhero
@ -165,6 +178,7 @@ Supported Locales
* fi-FI
* fr
* he
* hu
* in-ID
* it
* ja

View File

@ -3,7 +3,7 @@
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<packaging>jar</packaging>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.3-SNAPSHOT</version>
<name>Java Faker</name>
<description>
This library is a port of Ruby's stympy/faker gem (as well as Perl's Data::Faker library) that generates fake data.
@ -53,7 +53,7 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.23</version>
<version>1.26</version>
<classifier>android</classifier>
</dependency>
<dependency>

View File

@ -35,6 +35,10 @@ public class Address {
return faker.bothify(faker.fakeValuesService().resolve("address.postcode", this,faker));
}
public String postcode() {
return faker.bothify(faker.fakeValuesService().resolve("address.postcode", this,faker));
}
public String zipCodeByState(String stateAbbr) {
return faker.fakeValuesService().resolve("address.postcode_by_state." + stateAbbr, this, faker);
}

View File

@ -0,0 +1,15 @@
package com.github.javafaker;
public class AquaTeenHungerForce {
private final Faker faker;
protected AquaTeenHungerForce(Faker faker) {
this.faker = faker;
}
public String character() {
return faker.fakeValuesService().resolve("aqua_teen_hunger_force.character", this, faker);
}
}

View File

@ -0,0 +1,22 @@
package com.github.javafaker;
public class Barcode {
private Faker faker;
public Barcode(Faker faker) {
this.faker = faker;
}
public String type() {
return faker.resolve("barcode.types");
}
public String data(){
return faker.resolve("barcode.datas");
}
public String typeAndData(){
return faker.resolve("barcode.typeAndData");
}
}

View File

@ -0,0 +1,49 @@
package com.github.javafaker;
/**
* Generate random components of basketall game, e.g. teams, coaches, positions and players.
* @author unknown and irakatz
*/
public class Basketball {
private final Faker faker;
/**
* Create a constructor for Basketball.
* @param faker The Faker instance for generating random, different kinds of disease, e.g. the internal disease.
*/
protected Basketball(Faker faker) {
this.faker = faker;
}
/**
* Generate random basketball teams
* @return Basketball teams
*/
public String teams() {
return faker.fakeValuesService().resolve("basketball.teams", this, faker);
}
/**
* Generate random coaches in basketball game
* @return Basketball coaches
*/
public String coaches() {
return faker.fakeValuesService().resolve("basketball.coaches", this, faker);
}
/**
* Generate random positions in basketball game
* @return Basketball positions
*/
public String positions() {
return faker.fakeValuesService().resolve("basketball.positions", this, faker);
}
/**
* Generate random basketball players
* @return Basketball players
*/
public String players() {
return faker.fakeValuesService().resolve("basketball.players", this, faker);
}
}

View File

@ -0,0 +1,43 @@
package com.github.javafaker;
/**
* Generate random parts in BojackHorseman.
* @author unknown and irakatz
*/
public class BojackHorseman {
private final Faker faker;
/**
* Create a constructor for BojackHorseman.
* @param faker The Faker instance for generating random parts in BojackHorseman.
*/
protected BojackHorseman(Faker faker) {
this.faker = faker;
}
/**
* Generate random character's name in BojackHorseman.
* @return Characters in BojackHorseman
*/
public String characters() {
return faker.fakeValuesService().resolve("bojack_horseman.characters", this, faker);
}
/**
* Generate random quotes in BojackHorseman.
* @return Quotes in BojackHorseman
*/
public String quotes() {
return faker.fakeValuesService().resolve("bojack_horseman.quotes", this, faker);
}
/**
* Generate random tongue twisters in BojackHorseman.
* @return Tongue twisters in BojackHorseman
*/
public String tongueTwisters() {
return faker.fakeValuesService().resolve("bojack_horseman.tongue_twisters", this, faker);
}
}

View File

@ -0,0 +1,17 @@
package com.github.javafaker;
public class Coin {
private final Faker faker;
protected Coin(Faker faker) {
this.faker = faker;
}
/**
* @return coin side e.g. "Heads", "Tails".
*/
public String flip() {
return faker.fakeValuesService().resolve("coin.flip", this, faker);
}
}

View File

@ -69,13 +69,13 @@ public class Company {
}
public String url() {
return join(new Object[]{
return join(
"www",
".",
FakerIDN.toASCII(domainName()),
".",
domainSuffix()
});
);
}
private String domainName(){

View File

@ -144,34 +144,40 @@ public class DateAndTime {
throw new IllegalArgumentException("Invalid date range, the upper bound date is before the lower bound.");
}
if (from.equals(to)) {
return from;
}
long offsetMillis = faker.random().nextLong(to.getTime() - from.getTime());
return new Date(from.getTime() + offsetMillis);
}
/**
* Generates a random birthday between 65 and 18 years ago.
* Generates a random birthday between 65 and 18 years ago from now.
*
* @return a random birthday between 65 and 18 years ago.
* @return a random birthday between 65 and 18 years ago from now.
*/
public Date birthday() {
return birthday(DEFAULT_MIN_AGE, DEFAULT_MAX_AGE);
}
/**
* Generates a random birthday between two ages.
* Generates a random birthday between two ages from now.
*
* @param minAge
* the minimal age
* @param maxAge
* the maximal age
* @return a random birthday between {@code minAge} and {@code maxAge} years ago.
* @return a random birthday between {@code minAge} and {@code maxAge} years ago from now.
* @throws IllegalArgumentException
* if the {@code maxAge} is lower than {@code minAge}.
*/
public Date birthday(int minAge, int maxAge) {
int currentYear = Calendar.getInstance().get(Calendar.YEAR);
Calendar from = new GregorianCalendar(currentYear - maxAge, 0, 1);
Calendar to = new GregorianCalendar(currentYear - minAge, 11, 31);
int currentMonth = Calendar.getInstance().get(Calendar.MONTH);
int currentDay = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);
Calendar from = new GregorianCalendar(currentYear - maxAge, currentMonth, currentDay);
Calendar to = new GregorianCalendar(currentYear - minAge, currentMonth, currentDay);
return between(from.getTime(), to.getTime());
}

View File

@ -0,0 +1,73 @@
package com.github.javafaker;
/**
* Generate random, different kinds of disease.
*/
public class Disease {
private final Faker faker;
/**
* Create a constructor for Disease
* @param faker The Faker instance for generating random, different kinds of disease, e.g. the internal disease.
*/
protected Disease(Faker faker) {
this.faker = faker;
}
/**
* Generate random internal disease
* @return An internal disease
*/
public String internalDisease() {
return faker.fakeValuesService().resolve("disease.internal_disease", this, faker);
}
/**
* Generate random neurology disease
* @return A neurology disease
*/
public String neurology() {
return faker.fakeValuesService().resolve("disease.neurology", this, faker);
}
/**
* Generate random surgery disease
* @return A surgery disease
*/
public String surgery() {
return faker.fakeValuesService().resolve("disease.surgery", this, faker);
}
/**
* Generate random paediattics disease
* @return A paediatrics disease
*/
public String paediatrics() {
return faker.fakeValuesService().resolve("disease.paediatrics", this, faker);
}
/**
* Generate random gynecology and obstetrics disease
* @return A gynecology and obstetrics disease
*/
public String gynecologyAndObstetrics() {
return faker.fakeValuesService().resolve("disease.gynecology_and_obstetrics", this, faker);
}
/**
* Generate random ophthalmology and otorhinolaryngology disease
* @return A ophthalmology and otorhinolaryngology disease
*/
public String ophthalmologyAndOtorhinolaryngology() {
return faker.fakeValuesService().resolve("disease.ophthalmology_and_otorhinolaryngology", this, faker);
}
/**
* Generate random dermatolory disease
* @return A dermatolory disease
*/
public String dermatolory() {
return faker.fakeValuesService().resolve("disease.dermatolory", this, faker);
}
}

View File

@ -0,0 +1,80 @@
package com.github.javafaker;
public class Dune {
private final Faker faker;
protected Dune(Faker faker) {
this.faker = faker;
}
public String character() {
return faker.fakeValuesService().resolve("dune.characters", this, faker);
}
public String title() {
return faker.fakeValuesService().resolve("dune.titles", this, faker);
}
public String planet() {
return faker.fakeValuesService().resolve("dune.planets", this, faker);
}
public String quote() {
return quote(faker.options().option(Dune.Quote.class));
}
public String quote(Quote quote) {
return faker.fakeValuesService().resolve("dune.quotes." + quote.yamlKey, this, faker);
}
public String saying() {
return saying(faker.options().option(Dune.Saying.class));
}
public String saying(Saying saying) {
return faker.fakeValuesService().resolve("dune.sayings." + saying.yamlKey, this, faker);
}
public enum Quote {
GUILD_NAIVGATOR("guild_navigator"),
EMPEROR("emperor"),
PAUL("paul"),
THUFIR("thufir"),
JESSICA("jessica"),
IRULAN("irulan"),
MOHIAM("mohiam"),
GURNEY("gurney"),
LETO("leto"),
STILGAR("stilgar"),
LIET_KYNES("liet_kynes"),
PARDOT_KYNES("pardot_kynes"),
BARON_HARKONNEN("baron_harkonnen"),
PITER("piter"),
ALIA("alia"),
MAPES("mapes"),
DUNCAN("duncan"),
YUEH("yueh");
private final String yamlKey;
Quote(String yamlKey) {
this.yamlKey = yamlKey;
}
}
public enum Saying {
BENE_GESSERIT("bene_gesserit"),
FREMEN("fremen"),
MENTAT("mentat"),
MUADDIB("muaddib"),
ORANGE_CATHOLIC_BIBLE("orange_catholic_bible");
private final String yamlKey;
Saying(String yamlKey) {
this.yamlKey = yamlKey;
}
}
}

View File

@ -35,4 +35,7 @@ public class ElderScrolls {
public String lastName() {
return faker.fakeValuesService().resolve("games.elder_scrolls.last_name", this, faker);
}
public String quote() {return faker.fakeValuesService().resolve("games.elder_scrolls.quote", this, faker);
}
}

View File

@ -0,0 +1,18 @@
package com.github.javafaker;
public class EnglandFootBall {
private final Faker faker;
protected EnglandFootBall(final Faker faker) {
this.faker = faker;
}
public String league() {
return faker.fakeValuesService().resolve("englandfootball.leagues",this,faker);
}
public String team() {
return faker.fakeValuesService().resolve("englandfootball.teams",this,faker);
}
}

View File

@ -42,9 +42,11 @@ public class Faker {
private final Hacker hacker;
private final Options options;
private final Code code;
private final Coin coin;
private final Finance finance;
private final Food food;
private final GameOfThrones gameOfThrones;
private final Gender gender;
private final DateAndTime dateAndTime;
private final Demographic demographic;
private final Dog dog;
@ -91,13 +93,27 @@ public class Faker {
private final PrincessBride princessBride;
private final Buffy buffy;
private final Relationships relationships;
private final Nation nation;
private final Dune dune;
private final AquaTeenHungerForce aquaTeenHungerForce;
private final ProgrammingLanguage programmingLanguage;
private final Kaamelott kaamelott;
private final Photography photography;
private final StarCraft starCraft;
private final BojackHorseman bojackHorseman;
private final Disease disease;
private final Basketball basketball;
private final Barcode barcode;
private final Sip sip;
private final EnglandFootBall englandfootball;
private final Mountain mountain;
public Faker() {
this(Locale.ENGLISH);
}
public Faker(Locale locale) {
this(locale, null);
this(locale, (Random)null);
}
public Faker(Random random) {
@ -105,8 +121,16 @@ public class Faker {
}
public Faker(Locale locale, Random random) {
this.randomService = new RandomService(random);
this.fakeValuesService = new FakeValuesService(locale, randomService);
this(locale, new RandomService(random));
}
public Faker(Locale locale, RandomService randomService) {
this(new FakeValuesService(locale, randomService), randomService);
}
public Faker(FakeValuesService fakeValuesService, RandomService random) {
this.randomService = random;
this.fakeValuesService = fakeValuesService;
this.ancient = new Ancient(this);
this.app = new App(this);
@ -138,6 +162,7 @@ public class Faker {
this.finance = new Finance(this);
this.food = new Food(this);
this.gameOfThrones = new GameOfThrones(this);
this.gender = new Gender(this);
this.dateAndTime = new DateAndTime(this);
this.demographic = new Demographic(this);
this.dog = new Dog(this);
@ -145,6 +170,7 @@ public class Faker {
this.shakespeare = new Shakespeare(this);
this.slackEmoji = new SlackEmoji(this);
this.space = new Space(this);
this.coin = new Coin(this);
this.superhero = new Superhero(this);
this.team = new Team(this);
this.bool = new Bool(this);
@ -183,6 +209,20 @@ public class Faker {
this.princessBride = new PrincessBride(this);
this.buffy = new Buffy(this);
this.relationships = new Relationships(this);
this.nation = new Nation(this);
this.dune = new Dune(this);
this.aquaTeenHungerForce = new AquaTeenHungerForce(this);
this.programmingLanguage = new ProgrammingLanguage(this);
this.kaamelott = new Kaamelott(this);
this.photography = new Photography(this);
this.starCraft = new StarCraft(this);
this.bojackHorseman = new BojackHorseman(this);
this.disease = new Disease(this);
this.basketball = new Basketball(this);
this.barcode = new Barcode(this);
this.sip = new Sip(this);
this.englandfootball = new EnglandFootBall(this);
this.mountain = new Mountain(this);
}
/**
@ -407,6 +447,10 @@ public class Faker {
return code;
}
public Coin coin() {
return coin;
}
public File file() {
return file;
}
@ -427,6 +471,10 @@ public class Faker {
return gameOfThrones;
}
public Gender gender() {
return gender;
}
public DateAndTime date() {
return dateAndTime;
}
@ -467,9 +515,7 @@ public class Faker {
return team;
}
public Beer beer() {
return beer;
}
public Beer beer() { return beer; }
public University university() {
return university;
@ -579,14 +625,20 @@ public class Faker {
return lebowski;
}
public Medical medical(){return medical;}
public Medical medical() {
return medical;
}
public Country country(){ return country;}
public Country country() {
return country;
}
public Animal animal(){ return animal; }
public Animal animal() {
return animal;
}
public BackToTheFuture backToTheFuture() {
return backToTheFuture;
return backToTheFuture;
}
public PrincessBride princessBride() {
@ -596,7 +648,49 @@ public class Faker {
public Relationships relationships() {
return relationships;
}
public Nation nation() {
return nation;
}
public Dune dune() {
return dune;
}
public AquaTeenHungerForce aquaTeenHungerForce() {
return aquaTeenHungerForce;
}
public ProgrammingLanguage programmingLanguage() {
return programmingLanguage;
}
public Kaamelott kaamelott() {
return kaamelott;
}
public Photography photography() {
return photography;
}
public StarCraft starCraft() {
return starCraft;
}
public BojackHorseman bojackHorseman() { return bojackHorseman; }
public Disease disease() {return disease; }
public Basketball basketball() { return basketball; }
public Barcode barcode() { return barcode; }
public Sip sip() { return sip; }
public EnglandFootBall englandfootball() { return englandfootball; }
public Mountain mountain() { return mountain; }
public String resolve(String key) {
return this.fakeValuesService.resolve(key, this, this);
}

View File

@ -24,6 +24,6 @@ public class File {
final String dir = dirOrNull == null ? faker.internet().slug() : dirOrNull;
final String name = nameOrNull == null ? faker.lorem().word().toLowerCase() : nameOrNull;
final String ext = extensionOrNull == null ? extension() : extensionOrNull;
return new StringBuilder(dir).append(sep).append(name).append(".").append(ext).toString();
return dir + sep + name + "." + ext;
}
}

View File

@ -16,6 +16,22 @@ public class Food {
return faker.fakeValuesService().resolve("food.spices", this, faker);
}
public String dish() {
return faker.fakeValuesService().resolve("food.dish", this, faker);
}
public String fruit() {
return faker.fakeValuesService().resolve("food.fruits", this, faker);
}
public String vegetable() {
return faker.fakeValuesService().resolve("food.vegetables", this, faker);
}
public String sushi() {
return faker.fakeValuesService().resolve("food.sushi", this, faker);
}
public String measurement() {
return faker.fakeValuesService().resolve("food.measurement_sizes", this, faker) +
" " + faker.fakeValuesService().resolve("food.measurements", this, faker);

View File

@ -0,0 +1,41 @@
package com.github.javafaker;
/**
* This class is used to generate gender randomly.
*
*/
public class Gender {
private final Faker faker;
protected Gender(Faker faker) {
this.faker = faker;
}
/**
* This method returns a gender type
*
* @return a string of gender type
*/
public String types() {
return faker.fakeValuesService().fetchString("gender.types");
}
/**
* This method returns a binary gender type
*
* @return a string of binary gender type
*/
public String binaryTypes() {
return faker.fakeValuesService().fetchString("gender.binary_types");
}
/**
* This method returns a short binary gender type
*
* @return a string of short binary gender type
*/
public String shortBinaryTypes() {
return faker.fakeValuesService().fetchString("gender.short_binary_types");
}
}

View File

@ -22,4 +22,12 @@ public class HarryPotter {
public String book() {
return faker.resolve("harry_potter.books");
}
public String house() {
return faker.resolve("harry_potter.houses");
}
public String spell() {
return faker.resolve("harry_potter.spells");
}
}

View File

@ -51,7 +51,7 @@ public class Internet {
}
public String url() {
return join(new Object[]{
return join(
"www",
".",
FakerIDN.toASCII(
@ -61,7 +61,7 @@ public class Internet {
),
".",
domainSuffix()
});
);
}
/**

View File

@ -0,0 +1,17 @@
package com.github.javafaker;
public class Kaamelott {
private final Faker faker;
protected Kaamelott(Faker faker) {
this.faker = faker;
}
public String character() {
return faker.fakeValuesService().resolve("kaamelott.characters", this, faker);
}
public String quote() {
return faker.fakeValuesService().resolve("kaamelott.quotes", this, faker);
}
}

View File

@ -20,7 +20,7 @@ public class Lorem {
}
public char character(boolean includeUppercase) {
return characters(1).charAt(0);
return characters(1, includeUppercase).charAt(0);
}
public String characters() {
@ -28,7 +28,7 @@ public class Lorem {
}
public String characters(boolean includeUppercase) {
return characters(255, false);
return characters(255, includeUppercase);
}
public String characters(int minimumLength, int maximumLength) {

View File

@ -0,0 +1,17 @@
package com.github.javafaker;
public class Mountain {
private final Faker faker;
protected Mountain(Faker faker) {
this.faker = faker;
}
public String name() {
return faker.fakeValuesService().resolve("mountain.name", this, faker);
}
public String range() {
return faker.fakeValuesService().resolve("mountain.range", this, faker);
}
}

View File

@ -121,12 +121,20 @@ public class Name {
*/
public String username() {
String username = StringUtils.join(new String[]{
String username = StringUtils.join(
firstName().replaceAll("'", "").toLowerCase(),
".",
lastName().replaceAll("'", "").toLowerCase()}
lastName().replaceAll("'", "").toLowerCase()
);
return StringUtils.deleteWhitespace(username);
}
/**
* <p>Returns a blood group such as O, O+, A-, A+, B-, B+, AB-, AB+</p>
* @return a blood group such as O, O+, A-, A+, B-, B+, AB-, AB+
*/
public String bloodGroup() {
return faker.fakeValuesService().resolve("name.blood_group", this, faker);
}
}

View File

@ -0,0 +1,43 @@
package com.github.javafaker;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.charset.Charset;
import java.util.List;
public class Nation {
private static final Charset UTF8_CHARSET = Charset.forName("UTF-8");
private final Faker faker;
protected Nation(Faker faker) {
this.faker = faker;
}
public String nationality() {
return faker.fakeValuesService().resolve("nation.nationality", this, faker);
}
public String language() {
return faker.fakeValuesService().resolve("nation.language", this, faker);
}
public String capitalCity() {
return faker.fakeValuesService().resolve("nation.capital_city", this, faker);
}
public String flag() {
@SuppressWarnings("unchecked")
List<Integer> flagInts = (List<Integer>) faker.fakeValuesService().fetch("nation.flag");
ByteBuffer byteBuffer = MappedByteBuffer.allocate(flagInts.size());
for (Integer flagInt : flagInts) {
byteBuffer.put(flagInt.byteValue());
}
return new String(byteBuffer.array(), UTF8_CHARSET);
}
}

View File

@ -27,7 +27,10 @@ public class Number {
* @see Number#numberBetween(long, long)
*/
public int numberBetween(int min, int max) {
return decimalBetween(min,max).setScale(0, BigDecimal.ROUND_HALF_DOWN).intValue();
if (min == max) return min;
int value = decimalBetween(min,max).setScale(0, BigDecimal.ROUND_HALF_DOWN).intValue();
return value == max ? value - 1 : value;
}
/**
@ -39,7 +42,10 @@ public class Number {
* @param max exclusive (unless min == max)
*/
public long numberBetween(long min, long max) {
return decimalBetween(min,max).longValue();
if (min == max) return min;
long value = decimalBetween(min, max).setScale(0, BigDecimal.ROUND_HALF_DOWN).longValue();
return value == max ? value - 1 : value;
}
/**

View File

@ -0,0 +1,76 @@
package com.github.javafaker;
/**
* Provides photography related strings.
*/
public class Photography {
private final Faker faker;
protected Photography(Faker faker) {
this.faker = faker;
}
/**
* @return a photography term.
*/
public String term() {
return faker.fakeValuesService().fetchString("photography.term");
}
/**
* @return a photography brand.
*/
public String brand() {
return faker.fakeValuesService().fetchString("photography.brand");
}
/**
* @return a name of camera model/make.
*/
public String camera() {
return faker.fakeValuesService().fetchString("photography.camera");
}
/**
* @return some lens description like 500mm/8.
*/
public String lens() {
return faker.fakeValuesService().fetchString("photography.lens");
}
/**
* @return a photography genre.
*/
public String genre() {
return faker.fakeValuesService().fetchString("photography.genre");
}
/**
* @return some string to tag an image.
*/
public String imageTag() {
return faker.fakeValuesService().fetchString("photography.imagetag");
}
/**
* @return some aperture description like f/1.4 .
*/
public String aperture() {
return faker.fakeValuesService().fetchString("photography.aperture");
}
/**
* @return some shutter description like 1/25 .
*/
public String shutter() {
return faker.fakeValuesService().fetchString("photography.shutter");
}
/**
* @return some ISO value like 3200.
*/
public String iso() {
return faker.fakeValuesService().fetchString("photography.iso");
}
}

View File

@ -0,0 +1,19 @@
package com.github.javafaker;
public class ProgrammingLanguage {
private final Faker faker;
public ProgrammingLanguage(Faker faker) {
this.faker = faker;
}
public String name() {
return faker.fakeValuesService().resolve("programming_language.name", this, faker);
}
public String creator() {
return faker.fakeValuesService().resolve("programming_language.creator", this, faker);
}
}

View File

@ -1,60 +1,60 @@
package com.github.javafaker;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.apache.commons.lang3.ArrayUtils;
public class Relationships {
private final Faker faker;
protected Relationships(final Faker faker) {
this.faker = faker;
}
public String direct() {
return faker.resolve("relationship.familial.direct");
}
public String extended() {
return faker.resolve("relationship.familial.extended");
}
public String inLaw() {
return faker.resolve("relationship.in_law");
}
public String spouse() {
return faker.resolve("relationship.spouse");
}
public String parent() {
return faker.resolve("relationship.parent");
}
public String sibling() {
return faker.resolve("relationship.sibling");
}
public String any() {
Method currentMethod = Relationships.class.getClass().getEnclosingMethod();
try {
Method[] methods = Relationships.class.getDeclaredMethods();
methods = ArrayUtils.removeElement(methods, currentMethod);
int indx = faker.random().nextInt(methods.length);
Method runMethod = methods[indx];
Relationships relationships = new Relationships(faker);
return (String)runMethod.invoke(relationships);
} catch (SecurityException e) {
throw new RuntimeException("SecurityException: " + e.getMessage());
} catch (IllegalArgumentException e) {
throw new RuntimeException("IllegalArgumentException: " + e.getMessage());
} catch (IllegalAccessException e) {
throw new RuntimeException("IllegalAccessException: " + e.getMessage());
} catch (InvocationTargetException e) {
throw new RuntimeException("InvocationTargetException: " + e.getMessage());
}
}
}
package com.github.javafaker;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.apache.commons.lang3.ArrayUtils;
public class Relationships {
private final Faker faker;
protected Relationships(final Faker faker) {
this.faker = faker;
}
public String direct() {
return faker.resolve("relationship.familial.direct");
}
public String extended() {
return faker.resolve("relationship.familial.extended");
}
public String inLaw() {
return faker.resolve("relationship.in_law");
}
public String spouse() {
return faker.resolve("relationship.spouse");
}
public String parent() {
return faker.resolve("relationship.parent");
}
public String sibling() {
return faker.resolve("relationship.sibling");
}
public String any() {
Method currentMethod = getClass().getEnclosingMethod();
try {
Method[] methods = Relationships.class.getDeclaredMethods();
methods = ArrayUtils.removeElement(methods, currentMethod);
int indx = faker.random().nextInt(methods.length);
Method runMethod = methods[indx];
Relationships relationships = new Relationships(faker);
return (String)runMethod.invoke(relationships);
} catch (SecurityException e) {
throw new RuntimeException("SecurityException: " + e.getMessage());
} catch (IllegalArgumentException e) {
throw new RuntimeException("IllegalArgumentException: " + e.getMessage());
} catch (IllegalAccessException e) {
throw new RuntimeException("IllegalAccessException: " + e.getMessage());
} catch (InvocationTargetException e) {
throw new RuntimeException("InvocationTargetException: " + e.getMessage());
}
}
}

View File

@ -0,0 +1,215 @@
package com.github.javafaker;
import static java.nio.charset.StandardCharsets.UTF_8;
import java.util.ArrayList;
/**
* Faker class for generating Session Initiation Protocol (SIP) related data.
*
* @author TomerFi
*/
public final class Sip {
private final Faker faker;
private final ArrayList<Integer> portPool;
protected Sip(final Faker faker) {
this.faker = faker;
int port = 40000;
portPool = new ArrayList<Integer>();
while (port <= 50000) {
portPool.add(port);
port = port + 2;
}
}
/**
* The various SIP methods are listed in https://en.wikipedia.org/wiki/Session_Initiation_Protocol.
*
* @return a SIP method String, e.g. {@code INVITE}.
*/
public String method() {
return faker.resolve("sip.methods");
}
/**
* Content types are based on https://tools.ietf.org/html/rfc5621 and
* https://tools.ietf.org/html/rfc3261.
*
* @return a SIP content-type declaration String, e.g. {@code application/sdp}
*/
public String contentType() {
return faker.resolve("sip.content.types");
}
/**
* Get a 4 digit random port for SIP messaging.
*
* @return a SIP messaging port int, e.g. 5060.
*/
public int messagingPort() {
return faker.random().nextInt(1000, 9999);
}
/**
* Get a 5 digit positive even port for rtp udp communication.
*
* @return an RTP UDP 5 digit port int, e.g. 40002.
*/
public int rtpPort() {
return portPool.get(faker.random().nextInt(0, portPool.size()));
}
/**
* Proviosional code, the various response codes are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a 3 digit SIP provisioan response code between 100 and 199 int, e.g. {@code 180}.
*/
public int provisionalResponseCode() {
return Integer.parseInt(faker.resolve("sip.response.codes.provisional"));
}
/**
* Success code, the various response codes are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a 3 digit SIP success response code between 200 and 299 int, e.g. {@code 200}.
*/
public int successResponseCode() {
return Integer.parseInt(faker.resolve("sip.response.codes.success"));
}
/**
* Redirection code, the various response codes are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a 3 digit SIP redirection response code between 300 and 399 int, e.g. {@code 301}.
*/
public int redirectResponseCode() {
return Integer.parseInt(faker.resolve("sip.response.codes.redirection"));
}
/**
* Client error code, the various response codes are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a 3 digit SIP client error response code between 400 and 499 int, e.g. {@code 486}.
*/
public int clientErrorResponseCode() {
return Integer.parseInt(faker.resolve("sip.response.codes.clientError"));
}
/**
* Server error code, the various response codes are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a 3 digit SIP server error response code between 500 and 599 int, e.g. {@code 503}.
*/
public int serverErrorResponseCode() {
return Integer.parseInt(faker.resolve("sip.response.codes.serverError"));
}
/**
* Global error code, the various response codes are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a 3 digit SIP global error response code between 600 and 699 int, e.g. {@code 608}.
*/
public int globalErrorResponseCode() {
return Integer.parseInt(faker.resolve("sip.response.codes.globalError"));
}
/**
* Proviosional phrase, the various response phrases are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a SIP provisional response phrase String, e.g. {@code Ringing}.
*/
public String provisionalResponsePhrase() {
return faker.resolve("sip.response.phrases.provisional");
}
/**
* Success phrase, the various response phrases are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a SIP success response phrase String, e.g. {@code OK}.
*/
public String successResponsePhrase() {
return faker.resolve("sip.response.phrases.success");
}
/**
* Redirection phrase, the various response phrases are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a SIP redirection response phrase String, e.g. {@code Moved Permanently}.
*/
public String redirectResponsePhrase() {
return faker.resolve("sip.response.phrases.redirection");
}
/**
* Client error phrase, the various response phrases are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a SIP client error response phrase String, e.g. {@code Busy Here}.
*/
public String clientErrorResponsePhrase() {
return faker.resolve("sip.response.phrases.clientError");
}
/**
* Server error phrase, the various response phrases are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a SIP server erro response phrase String, e.g. {@code Service Unavailable}.
*/
public String serverErrorResponsePhrase() {
return faker.resolve("sip.response.phrases.serverError");
}
/**
* Server error phrase, the various response phrases are listed in
* https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
*
* @return a SIP global error response phrase String, e.g. {@code Rejected}.
*/
public String globalErrorResponsePhrase() {
return faker.resolve("sip.response.phrases.globalError");
}
/**
* Body example of SDP type can be found in https://tools.ietf.org/html/rfc5621.
*
* @return a fake SDP type SIP body String.
*/
public String bodyString() {
return "v=0\n" +
"o=" + faker.name().firstName() + " " + faker.internet().uuid() + " IN IP4 " + faker.internet().domainName() + "\n" +
"s=-\n" +
"c=IN IP4 " + faker.internet().ipV4Address() + "\n" +
"t=0 0\n" +
"m=audio " + rtpPort() + " RTP/AVP 0\n" +
"a=rtpmap:0 PCMU/8000";
}
/**
* Body example of SDP type can be found in https://tools.ietf.org/html/rfc5621.
*
* @return a fake SDP type SIP body byte array.
*/
public byte[] bodyBytes() {
return bodyString().getBytes(UTF_8);
}
/**
* Return a valid name address to use with {@code to/from} headers.
*
* @return a valid name address String, e.g. {@code <sip:fakeName@10.1.2.3:5060>}.
*/
public String nameAddress() {
return "<sip:" + faker.name().firstName() + "@" + faker.internet().ipV4Address() + ":" + messagingPort() + ">";
}
}

View File

@ -0,0 +1,27 @@
package com.github.javafaker;
public class StarCraft {
private final Faker faker;
protected StarCraft(final Faker faker) {
this.faker = faker;
}
public String unit() {
return faker.fakeValuesService().resolve("starcraft.units", this, faker);
}
public String building() {
return faker.fakeValuesService().resolve("starcraft.buildings", this, faker);
}
public String character() {
return faker.fakeValuesService().resolve("starcraft.characters", this, faker);
}
public String planet() {
return faker.fakeValuesService().resolve("starcraft.planets", this, faker);
}
}

View File

@ -22,4 +22,8 @@ public class StarTrek {
public String villain() {
return faker.fakeValuesService().resolve("star_trek.villain", this, faker);
}
public String klingon() {
return faker.fakeValuesService().resolve("star_trek.klingon", this, faker);
}
}

View File

@ -14,8 +14,8 @@ public class EnIdNumber {
String ssn = f.regexify("[0-8]\\d{2}-\\d{2}-\\d{4}");
boolean isValid = true;
for (int i = 0; i < invalidSSNPatterns.length; i++) {
if (ssn.matches(invalidSSNPatterns[i])) {
for (String invalidSSNPattern : invalidSSNPatterns) {
if (ssn.matches(invalidSSNPattern)) {
isValid = false;
break;
}

View File

@ -2,6 +2,7 @@ package com.github.javafaker.service;
import org.yaml.snakeyaml.Yaml;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;
@ -75,6 +76,11 @@ public class FakeValues implements FakeValuesInterface {
if (localeBased == null) {
localeBased = (Map) valuesMap.get(filename);
}
try {
stream.close();
} catch (IOException ex){
return null;
}
return (Map) localeBased.get("faker");
}

View File

@ -13,18 +13,18 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class FakeValuesService {
private static final Pattern EXPRESSION_PATTERN = Pattern.compile("#\\{([a-z0-9A-Z_.]+)\\s?(?:'([^']+)')?(?:,'([^']+)')*\\}");
private static final Pattern EXPRESSION_PATTERN = Pattern.compile("#\\{([a-z0-9A-Z_.]+)\\s?((?:,?'([^']+)')*)\\}");
private static final Pattern EXPRESSION_ARGUMENTS_PATTERN = Pattern.compile("(?:'(.*?)')");
private final Logger log = Logger.getLogger("faker");
@ -72,7 +72,7 @@ public class FakeValuesService {
}
all.add(fakeValuesGrouping);
} else {
all.add(new FakeValues(locale));
all.add(new FakeValues(l));
}
}
@ -108,7 +108,7 @@ public class FakeValuesService {
* with new Locale("pt","BR").
*/
private Locale normalizeLocale(Locale locale) {
final String[] parts = locale.toString().split("[-\\_]");
final String[] parts = locale.toString().split("[-_]");
if (parts.length == 1) {
return new Locale(parts[0]);
@ -347,9 +347,11 @@ public class FakeValuesService {
while (matcher.find()) {
final String escapedDirective = matcher.group(0);
final String directive = matcher.group(1);
final String arguments = matcher.group(2);
final Matcher argsMatcher = EXPRESSION_ARGUMENTS_PATTERN.matcher(arguments);
List<String> args = new ArrayList<String>();
for (int i = 2; i < matcher.groupCount() + 1 && matcher.group(i) != null; i++) {
args.add(matcher.group(i));
while (argsMatcher.find()) {
args.add(argsMatcher.group(1));
}
// resolve the expression and reprocess it to handle recursive templates
@ -573,7 +575,7 @@ public class FakeValuesService {
* this is useful as we get to find the method and coerce the arguments in one
* shot, returning both when successful. This saves us from doing it more than once (coercing args).
*/
private class MethodAndCoercedArgs {
private static class MethodAndCoercedArgs {
private final Method method;

View File

@ -60,11 +60,18 @@ public class RandomService {
}
public String hex(int length) {
char[] hexValues = new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
StringBuilder hexString = new StringBuilder();
for(int i = 0; i < length; i++) {
hexString.append(hexValues[nextInt(hexValues.length)]);
if (length <= 0) {
return ""; // Keep the existing behavior instead of throwing an error.
}
return hexString.toString();
final char[] hexChars = new char[length];
for (int i = 0; i < length; i++) {
final int nextHex = nextInt(16);
if (nextHex < 10) {
hexChars[i] = (char) ('0' + nextHex);
} else {
hexChars[i] = (char) ('A' + nextHex - 10);
}
}
return new String(hexChars);
}
}

View File

@ -35,7 +35,9 @@ public class EnFile {
"artist.yml",
"aviation.yml",
"back_to_the_future.yml",
"barcode.yml",
"bank.yml",
"basketball.yml",
"beer.yml",
"bojack_horseman.yml",
"book.yml",
@ -62,6 +64,7 @@ public class EnFile {
"demographic.yml",
"dessert.yml",
"device.yml",
"disease.yml",
"dota.yml",
"dr_who.yml",
"dragon_ball.yml",
@ -71,6 +74,7 @@ public class EnFile {
"elder_scrolls.yml",
"electrical_components.yml",
"esport.yml",
"englandfootball.yml",
"fallout.yml",
"family_guy.yml",
"famous_last_words.yml",
@ -116,6 +120,7 @@ public class EnFile {
"military.yml",
"most_interesting_man_in_the_world.yml",
"movie.yml",
"mountain.yml",
"music.yml",
"myst.yml",
"name.yml",
@ -127,6 +132,7 @@ public class EnFile {
"parks_and_rec.yml",
"phish.yml",
"phone_number.yml",
"photography.yml",
"pokemon.yml",
"princess_bride.yml",
"programming_language.yml",
@ -142,11 +148,13 @@ public class EnFile {
"silicon_valley.yml",
"simpsons.yml",
"singular_siegler.yml",
"sip.yml",
"slack_emoji.yml",
"sonic_the_hedgehog.yml",
"source.yml",
"south_park.yml",
"space.yml",
"starcraft.yml",
"star_trek.yml",
"star_wars.yml",
"stargate.yml",
@ -170,6 +178,7 @@ public class EnFile {
"verbs.yml",
"weather.yml",
"witcher.yml",
"kaamelott.yml",
"world_cup.yml",
"world_of_warcraft.yml",
"yoda.yml",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,10 @@
en:
faker:
barcode:
types: ['UPC', 'UPC-A', 'UPC-E', 'Code128', 'Code39','Code93', 'EAN', 'EAN-13', 'EAN-8', 'JAN-13', 'ISBN', 'ISSN',
'ITF', 'Codabar', 'Ames Code', 'NW-7', 'Monarch', 'Code 2 of 7', 'Rationalized', 'ANSI/AIM BC3-1995', 'USD-4',
'GS1 Databar', 'MSI Plessey', 'UCC']
datas: ['12345678', '09876543', '05755069', '15008444', '69503172', '05082366', '29951287', '37457367',
'87164772', '17217165', '56462327', '35186895', '16957481', '68124245', '28664694', '12372549',
'02527355']
typeAndData: "#{barcode.types} #{barcode.datas}"

View File

@ -1,6 +1,5 @@
en:
faker:
coin:
flip:
- Heads
- Tails
flip: ["Heads", "Tails"]

View File

@ -3,7 +3,7 @@ en:
country:
code2: ['af', 'al', 'dz', 'ad', 'ao', 'ag', 'ar', 'am', 'au', 'at', 'az', 'bs', 'bh', 'bd', 'bb', 'by', 'be', 'bz', 'bj', 'bt', 'bo', 'ba', 'bw', 'br', 'bn', 'bg', 'bf', 'bi', 'cv', 'kh', 'cm', 'ca', 'cf', 'td', 'cl', 'cn', 'co', 'km', 'cg', 'cd', 'cr', 'ci', 'hr', 'cu', 'cy', 'cz', 'dk', 'dj', 'dm', 'do', 'ec', 'eg', 'sv', 'gq', 'er', 'ee', 'sz', 'et', 'fj', 'fi', 'fr', 'ga', 'gm', 'ge', 'de', 'gh', 'gr', 'gd', 'gt', 'gn', 'gw', 'gy', 'ht', 'hn', 'hu', 'is', 'in', 'id', 'ir', 'iq', 'ie', 'il', 'it', 'jm', 'jp', 'jo', 'kz', 'ke', 'ki', 'kp', 'kr', 'kw', 'kg', 'la', 'lv', 'lb', 'ls', 'lr', 'ly', 'li', 'lt', 'lu', 'mk', 'mg', 'mw', 'my', 'mv', 'ml', 'mt', 'mh', 'mr', 'mu', 'mx', 'fm', 'md', 'mc', 'mn', 'me', 'ma', 'mz', 'mm', 'na', 'nr', 'np', 'nl', 'nz', 'ni', 'ne', 'ng', 'no', 'om', 'pk', 'pw', 'pa', 'pg', 'py', 'pe', 'ph', 'pl', 'pt', 'qa', 'ro', 'ru', 'rw', 'kn', 'lc', 'vc', 'ws', 'sm', 'st', 'sa', 'sn', 'rs', 'sc', 'sl', 'sg', 'sk', 'si', 'sb', 'so', 'za', 'ss', 'es', 'lk', 'sd', 'sr', 'se', 'ch', 'sy', 'tj', 'tz', 'th', 'tl', 'tg', 'to', 'tt', 'tn', 'tr', 'tm', 'tv', 'ug', 'ua', 'ae', 'gb', 'us', 'uy', 'uz', 'vu', 've', 'vn', 'ye', 'zm', 'zw']
code3: ['afg', 'alb', 'dza', 'and', 'ago', 'atg', 'arg', 'arm', 'aus', 'aut', 'aze', 'bhs', 'bhr', 'bgd', 'brb', 'blr', 'bel', 'blz', 'ben', 'btn', 'bol', 'bih', 'bwa', 'bra', 'brn', 'bgr', 'bfa', 'bdi', 'cpv', 'khm', 'cmr', 'can', 'caf', 'tcd', 'chl', 'chn', 'col', 'com', 'cog', 'cod', 'cri', 'civ', 'hrv', 'cub', 'cyp', 'cze', 'dnk', 'dji', 'dma', 'dom', 'ecu', 'egy', 'slv', 'gnq', 'eri', 'est', 'swz', 'eth', 'fji', 'fin', 'fra', 'gab', 'gmb', 'geo', 'deu', 'gha', 'grc', 'grd', 'gtm', 'gin', 'gnb', 'guy', 'hti', 'hnd', 'hun', 'isl', 'ind', 'idn', 'irn', 'irq', 'irl', 'isr', 'ita', 'jam', 'jpn', 'jor', 'kaz', 'ken', 'kir', 'prk', 'kor', 'kwt', 'kgz', 'lao', 'lva', 'lbn', 'lso', 'lbr', 'lby', 'lie', 'ltu', 'lux', 'mkd', 'mdg', 'mwi', 'mys', 'mdv', 'mli', 'mlt', 'mhl', 'mrt', 'mus', 'mex', 'fsm', 'mda', 'mco', 'mng', 'mne', 'mar', 'moz', 'mmr', 'nam', 'nru', 'npl', 'nld', 'nzl', 'nic', 'ner', 'nga', 'nor', 'omn', 'pak', 'plw', 'pan', 'png', 'pry', 'per', 'phl', 'pol', 'prt', 'qat', 'rou', 'rus', 'rwa', 'kna', 'lca', 'vct', 'wsm', 'smr', 'stp', 'sau', 'sen', 'srb', 'syc', 'sle', 'sgp', 'svk', 'svn', 'slb', 'som', 'zaf', 'ssd', 'esp', 'lka', 'sdn', 'sur', 'swe', 'che', 'syr', 'tjk', 'tza', 'tha', 'tls', 'tgo', 'ton', 'tto', 'tun', 'tur', 'tkm', 'tuv', 'uga', 'ukr', 'are', 'gbr', 'usa', 'ury', 'uzb', 'vut', 'ven', 'vnm', 'yem', 'zmb', 'zwe']
name: ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia (Plurinational State of)", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cabo Verde", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo", "Congo, Democratic Republic of the", "Costa Rica", "Côte d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czechia", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Eswatini", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea (Democratic People's Republic of)", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia, the former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia (Federated States of)", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Sweden", "Switzerland", "Syrian Arab Republic", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Timor-Leste", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom of Great Britain and Northern Ireland", "United States of America", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela (Bolivarian Republic of)", "Viet Nam", "Yemen", "Zambia", "Zimbabwe"]
name: ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia (Plurinational State of)", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cabo Verde", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo", "Congo, Democratic Republic of the", "Costa Rica", "Côte d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czechia", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Eswatini", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea (Democratic People's Republic of)", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia, the former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia (Federated States of)", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Sweden", "Switzerland", "Syrian Arab Republic", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Timor-Leste", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom of Great Britain and Northern Ireland", "United States of America", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela (Bolivarian Republic of)", "Viet Nam", "Yemen", "Zambia", "Zimbabwe"]
capital: ["Hargeisa", "King Edward Point", "Port-aux-Français", "Jerusalem", "Mariehamn", "Yaren", "Marigot", "Atafu", "El-Aaiún", "Kabul", "Tirana", "Algiers", "Pago Pago", "Andorra la Vella", "Luanda", "The Valley", "Saint John's", "Buenos Aires", "Yerevan", "Oranjestad", "Canberra", "Vienna", "Baku", "Nassau", "Manama", "Dhaka", "Bridgetown", "Minsk", "Brussels", "Belmopan", "Porto-Novo", "Hamilton", "Thimphu", "La Paz", "Sarajevo", "Gaborone", "Brasilia", "Road Town", "Bandar Seri Begawan", "Sofia", "Ouagadougou", "Rangoon", "Bujumbura", "Phnom Penh", "Yaounde", "Ottawa", "Praia", "George Town", "Bangui", "N'Djamena", "Santiago", "Beijing", "The Settlement", "West Island", "Bogota", "Moroni", "Kinshasa", "Brazzaville", "Avarua", "San Jose", "Yamoussoukro", "Zagreb", "Havana", "Willemstad", "Nicosia", "Prague", "Copenhagen", "Djibouti", "Roseau", "Santo Domingo", "Quito", "Cairo", "San Salvador", "Malabo", "Asmara", "Tallinn", "Addis Ababa", "Stanley", "Torshavn", "Suva", "Helsinki", "Paris", "Papeete", "Libreville", "Banjul", "Tbilisi", "Berlin", "Accra", "Gibraltar", "Athens", "Nuuk", "Saint George's", "Hagatna", "Guatemala City", "Saint Peter Port", "Conakry", "Bissau", "Georgetown", "Port-au-Prince", "Vatican City", "Tegucigalpa", "Budapest", "Reykjavik", "New Delhi", "Jakarta", "Tehran", "Baghdad", "Dublin", "Douglas", "Jerusalem", "Rome", "Kingston", "Tokyo", "Saint Helier", "Amman", "Astana", "Nairobi", "Tarawa", "Pyongyang", "Seoul", "Pristina", "Kuwait City", "Bishkek", "Vientiane", "Riga", "Beirut", "Maseru", "Monrovia", "Tripoli", "Vaduz", "Vilnius", "Luxembourg", "Skopje", "Antananarivo", "Lilongwe", "Kuala Lumpur", "Male", "Bamako", "Valletta", "Majuro", "Nouakchott", "Port Louis", "Mexico City", "Palikir", "Chisinau", "Monaco", "Ulaanbaatar", "Podgorica", "Plymouth", "Rabat", "Maputo", "Windhoek", "Kathmandu", "Amsterdam", "Noumea", "Wellington", "Managua", "Niamey", "Abuja", "Alofi", "Kingston", "Saipan", "Oslo", "Muscat", "Islamabad", "Melekeok", "Panama City", "Port Moresby", "Asuncion", "Lima", "Manila", "Adamstown", "Warsaw", "Lisbon", "San Juan", "Doha", "Bucharest", "Moscow", "Kigali", "Gustavia", "Jamestown", "Basseterre", "Castries", "Saint-Pierre", "Kingstown", "Apia", "San Marino", "Sao Tome", "Riyadh", "Dakar", "Belgrade", "Victoria", "Freetown", "Singapore", "Philipsburg", "Bratislava", "Ljubljana", "Honiara", "Mogadishu", "Pretoria", "Juba", "Madrid", "Colombo", "Khartoum", "Paramaribo", "Longyearbyen", "Mbabane", "Stockholm", "Bern", "Damascus", "Taipei", "Dushanbe", "Dar es Salaam", "Bangkok", "Dili", "Lome", "Nuku'alofa", "Port of Spain", "Tunis", "Ankara", "Ashgabat", "Grand Turk", "Funafuti", "Kampala", "Kyiv", "Abu Dhabi", "London", "Washington", "Montevideo", "Tashkent", "Port-Vila", "Caracas", "Hanoi", "Charlotte Amalie", "Mata-Utu", "Sanaa", "Lusaka", "Harare", "Washington", "North Nicosia", "Diego Garcia"]
currency: ["Afghani", "Euro", "Lek", "Algerian Dinar", "US Dollar", "Euro", "Kwanza", "East Caribbean Dollar", "No universal currency", "East Caribbean Dollar", "Argentine Peso", "Armenian Dram", "Aruban Florin", "Australian Dollar", "Euro", "Azerbaijan Manat", "Bahamian Dollar", "Bahraini Dinar", "Taka", "Barbados Dollar", "Belarusian Ruble", "Euro", "Belize Dollar", "CFA Franc BCEAO", "Bermudian Dollar", "Indian Rupee", "Ngultrum", "Boliviano", "Mvdol", "US Dollar", "Convertible Mark", "Pula", "Norwegian Krone", "Brazilian Real", "US Dollar", "Brunei Dollar", "Bulgarian Lev", "CFA Franc BCEAO", "Burundi Franc", "Cabo Verde Escudo", "Riel", "CFA Franc BEAC", "Canadian Dollar", "Cayman Islands Dollar", "CFA Franc BEAC", "CFA Franc BEAC", "Chilean Peso", "Unidad de Fomento", "Yuan Renminbi", "Australian Dollar", "Australian Dollar", "Colombian Peso", "Unidad de Valor Real", "Comorian Franc ", "Congolese Franc", "CFA Franc BEAC", "New Zealand Dollar", "Costa Rican Colon", "CFA Franc BCEAO", "Kuna", "Cuban Peso", "Peso Convertible", "Netherlands Antillean Guilder", "Euro", "Czech Koruna", "Danish Krone", "Djibouti Franc", "East Caribbean Dollar", "Dominican Peso", "US Dollar", "Egyptian Pound", "El Salvador Colon", "US Dollar", "CFA Franc BEAC", "Nakfa", "Euro", "Ethiopian Birr", "Euro", "Falkland Islands Pound", "Danish Krone", "Fiji Dollar", "Euro", "Euro", "Euro", "CFP Franc", "Euro", "CFA Franc BEAC", "Dalasi", "Lari", "Euro", "Ghana Cedi", "Gibraltar Pound", "Euro", "Danish Krone", "East Caribbean Dollar", "Euro", "US Dollar", "Quetzal", "Pound Sterling", "Guinean Franc", "CFA Franc BCEAO", "Guyana Dollar", "Gourde", "US Dollar", "Australian Dollar", "Euro", "Lempira", "Hong Kong Dollar", "Forint", "Iceland Krona", "Indian Rupee", "Rupiah", "SDR (Special Drawing Right)", "Iranian Rial", "Iraqi Dinar", "Euro", "Pound Sterling", "New Israeli Sheqel", "Euro", "Jamaican Dollar", "Yen", "Pound Sterling", "Jordanian Dinar", "Tenge", "Kenyan Shilling", "Australian Dollar", "North Korean Won", "Won", "Kuwaiti Dinar", "Som", "Lao Kip", "Euro", "Lebanese Pound", "Loti", "Rand", "Liberian Dollar", "Libyan Dinar", "Swiss Franc", "Euro", "Euro", "Pataca", "Denar", "Malagasy Ariary", "Malawi Kwacha", "Malaysian Ringgit", "Rufiyaa", "CFA Franc BCEAO", "Euro", "US Dollar", "Euro", "Ouguiya", "Mauritius Rupee", "Euro", "ADB Unit of Account", "Mexican Peso", "Mexican Unidad de Inversion (UDI)", "US Dollar", "Moldovan Leu", "Euro", "Tugrik", "Euro", "East Caribbean Dollar", "Moroccan Dirham", "Mozambique Metical", "Kyat", "Namibia Dollar", "Rand", "Australian Dollar", "Nepalese Rupee", "Euro", "CFP Franc", "New Zealand Dollar", "Cordoba Oro", "CFA Franc BCEAO", "Naira", "New Zealand Dollar", "Australian Dollar", "US Dollar", "Norwegian Krone", "Rial Omani", "Pakistan Rupee", "US Dollar", "No universal currency", "Balboa", "US Dollar", "Kina", "Guarani", "Sol", "Philippine Peso", "New Zealand Dollar", "Zloty", "Euro", "US Dollar", "Qatari Rial", "Euro", "Romanian Leu", "Russian Ruble", "Rwanda Franc", "Euro", "Saint Helena Pound", "East Caribbean Dollar", "East Caribbean Dollar", "Euro", "Euro", "East Caribbean Dollar", "Tala", "Euro", "Dobra", "Saudi Riyal", "CFA Franc BCEAO", "Serbian Dinar", "Seychelles Rupee", "Leone", "Singapore Dollar", "Netherlands Antillean Guilder", "Sucre", "Euro", "Euro", "Solomon Islands Dollar", "Somali Shilling", "Rand", "No universal currency", "South Sudanese Pound", "Euro", "Sri Lanka Rupee", "Sudanese Pound", "Surinam Dollar", "Norwegian Krone", "Lilangeni", "Swedish Krona", "Swiss Franc", "WIR Euro", "WIR Franc", "Syrian Pound", "New Taiwan Dollar", "Somoni", "Tanzanian Shilling", "Baht", "US Dollar", "CFA Franc BCEAO", "New Zealand Dollar", "Paanga", "Trinidad and Tobago Dollar", "Tunisian Dinar", "Turkish Lira", "Turkmenistan New Manat", "US Dollar", "Australian Dollar", "Uganda Shilling", "Hryvnia", "UAE Dirham", "Pound Sterling", "US Dollar", "US Dollar", "US Dollar (Next day)", "Peso Uruguayo", "Uruguay Peso en Unidades Indexadas (UI)", "Unidad Previsional", "Uzbekistan Sum", "Vatu", "Bolívar Soberano", "Dong", "US Dollar", "US Dollar", "CFP Franc", "Moroccan Dirham", "Yemeni Rial", "Zambian Kwacha", "Zimbabwe Dollar"]
currency_code: ["AFN", "EUR", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "XCD", "ARS", "AMD", "AWG", "AUD", "EUR", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "EUR", "BZD", "XOF", "BMD", "INR", "BTN", "BOB", "BOV", "USD", "BAM", "BWP", "NOK", "BRL", "USD", "BND", "BGN", "XOF", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "XAF", "XAF", "CLP", "CLF", "CNY", "AUD", "AUD", "COP", "COU", "KMF", "CDF", "XAF", "NZD", "CRC", "XOF", "HRK", "CUP", "CUC", "ANG", "EUR", "CZK", "DKK", "DJF", "XCD", "DOP", "USD", "EGP", "SVC", "USD", "XAF", "ERN", "EUR", "ETB", "EUR", "FKP", "DKK", "FJD", "EUR", "EUR", "EUR", "XPF", "EUR", "XAF", "GMD", "GEL", "EUR", "GHS", "GIP", "EUR", "DKK", "XCD", "EUR", "USD", "GTQ", "GBP", "GNF", "XOF", "GYD", "HTG", "USD", "AUD", "EUR", "HNL", "HKD", "HUF", "ISK", "INR", "IDR", "XDR", "IRR", "IQD", "EUR", "GBP", "ILS", "EUR", "JMD", "JPY", "GBP", "JOD", "KZT", "KES", "AUD", "KPW", "KRW", "KWD", "KGS", "LAK", "EUR", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "EUR", "EUR", "MOP", "MKD", "MGA", "MWK", "MYR", "MVR", "XOF", "EUR", "USD", "EUR", "MRU", "MUR", "EUR", "XUA", "MXN", "MXV", "USD", "MDL", "EUR", "MNT", "EUR", "XCD", "MAD", "MZN", "MMK", "NAD", "ZAR", "AUD", "NPR", "EUR", "XPF", "NZD", "NIO", "XOF", "NGN", "NZD", "AUD", "USD", "NOK", "OMR", "PKR", "USD", "PAB", "USD", "PGK", "PYG", "PEN", "PHP", "NZD", "PLN", "EUR", "USD", "QAR", "EUR", "RON", "RUB", "RWF", "EUR", "SHP", "XCD", "XCD", "EUR", "EUR", "XCD", "WST", "EUR", "STN", "SAR", "XOF", "RSD", "SCR", "SLL", "SGD", "ANG", "XSU", "EUR", "EUR", "SBD", "SOS", "ZAR", "SSP", "EUR", "LKR", "SDG", "SRD", "NOK", "SZL", "SEK", "CHF", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "USD", "XOF", "NZD", "TOP", "TTD", "TND", "TRY", "TMT", "USD", "AUD", "UGX", "UAH", "AED", "GBP", "USD", "USD", "USN", "UYU", "UYI", "UYW", "UZS", "VUV", "VES", "VND", "USD", "USD", "XPF", "MAD", "YER", "ZMW", "ZWL"]

View File

@ -0,0 +1,12 @@
en:
faker:
disease:
internal_disease: ['Acidosis', 'Adams-Stokes syndrome', 'alcoholism', 'alkalosis', 'anaphylaxis', 'anemia', 'iron deficiency anemia', 'megaloblastic anemia', 'aplastic anemia', 'angiitis', 'angina pectoris', 'arteriosclerosis', 'apoplexy', 'auricular fibrillation', 'auriculo-ventricular block', 'bronchial asthma', 'bronchitis', 'bronchiectasis', 'bronchopneumonia', 'carcinoma', 'cardiac arrhythmia', 'cardiac failure', 'cardiomyopathy', 'cirrhosis', 'coronary arteriosclerotic heart disease', 'Crohn disease', "Cushing's syndrome", 'diabetes', 'diffuse intravascular coagulation', 'dysentery', 'enteritis', 'gastric ulcer', 'gastritis', 'gout', 'hepatitis', "Hodgkin's disease", 'hyperlipemia', 'hyperparathyroidism', 'hypersplenism', 'hypertension', 'hyperthyroidism', 'hypoglycemia', 'hypothyroidism', 'infective endocarditis', 'influenza', 'leukemia', 'lobar pneumonia', 'lymphadenitis', 'lymphoma', 'malaria', 'malnutrition', 'measles', 'myeloma', 'myocardial infarction', 'myocarditis', 'nephritis', 'nephritic syndrome', 'obstructive pulmonary emphysema', 'pancreatitis', 'peptic ulcer', 'peritonitis', 'pleuritis', 'pneumonia', 'pneumothorax', 'purpura', 'allergic purpura', 'thrombocytolytic purpura', 'pyelonephritis', 'renal failure', 'rheumatic fever', 'rheumatoid arthritis', 'scarlet fever', 'septicemia', 'syphilis', 'tachycardia', 'tumour', 'typhoid', 'ulcerative colitis']
neurology: ['brain abscess', 'cerebral embolism', 'cerebral infarction', 'cerebral thrombosis', 'cerebral hemorrhage', 'concussion of brain', 'craniocerebral injury', 'epilepsy', 'intracranial tumour', 'intracranial hematoma', 'meningitis', 'migraine', 'neurasthenia', 'neurosis', 'paranoid psychosis', "Parkinson's disease", 'psychosis']
surgery: ['abdominal external hernia', 'acute diffuse peritonitis', 'acute mastitis', 'acute pancreatitis', 'acute perforation of gastro-duodenal', 'acute pyelonephritis', 'anal fissure', 'anal fistula', 'anesthesia', 'angioma', 'appendicitis', 'bleeding of gastro-duodenal ulcer', 'bone tumour', 'breast adenoma', 'burn', 'cancer of breast', 'carbuncle', 'carcinoma of colon', 'carcinoma of esophagus', 'carcinoma of gallbladder', 'carcinoma of rectum', 'carcinoma of stomach', 'cholecystitis', 'cervical spondylosis', 'choledochitis', 'cholelithiasis', 'chondroma', 'dislocation of joint', 'erysipelas', 'fracture', 'furuncle', 'hemorrhoid', 'hemothorax', 'hypertrophy of prostate', 'intestinal obstruction', 'intestinal tuberculosis', 'lipoma', 'lithangiuria', 'liver abscess', 'melanoma', 'osseous tuberculosis', 'osteoclastoma', 'osteoporosis', 'osteosarcoma', 'osteosarcoma', "Paget's disease", 'perianorecrtal abscess', 'phlegmon', 'portal hypertension', 'prostatitis', 'protrusion of intervertebral disc', 'purulent arthritis', 'pyogenic ostcomyclitis', 'pyothorax', 'rectal polyp', 'rheumatoid arthritis', 'rupture of spleen', 'scapulohumeral periarthritis', 'tenosynovitis', 'tetanus', 'thromboangiitis', 'thyroid adenocarcinoma', 'thyroid adenoma', 'trauma', 'urinary infection', 'varicose vein of lower limb']
paediatrics: ['acute military tuberculosis of the lung', 'acute necrotic enteritis', 'anaphylactic purpura', 'ancylostomiasis', 'ascariasis', 'asphyxia of the newborn', 'atrial septal defect', 'birth injury', 'cephalhematoma', 'cerebral palsy', 'congenital torticollis', 'convulsion', "Down's syndrome", 'glomerulonephritis', 'hemophilia', 'infantile diarrhea', 'intracranial hemorrhage of the newborn', 'intussusception', 'necrotic enterocolitis of newborn', 'neonatal jaundice', 'nutritional iron deficiency anemia', 'nutritional megaloblastic anemia', 'patent ductus arteriosis', 'poliomyelitis', 'premature infant', 'primary tuberculosis', 'progressive muscular dystrophy', 'pulmonary stenosis', 'purulent meningitis', 'rickets', 'sepsis of the newborn', 'tetanus of the newborn', 'tetralogy of Fallot', 'thrush', 'varicella', 'ventricular septal defect', 'viral encephalitis', 'viral myocarditis']
gynecology_and_obstetrics: ['abortion', 'adenomyosis', 'amniotic fluid embolism', 'Bartholins cyst', 'carcinoma of cervix', 'carcinoma of endometrium', 'carcinoma of ovary', 'cervicitis', 'chorio-epithelioma', 'corpora luteum cyst', 'dystocia', 'eclampsia', 'edema-proteinuria-hypertension', 'endometriosis', 'extrauterine pregnancy', 'hydatidiform mole', 'hyperemesis gravidarum', 'infertility', 'irregular menstruation', 'lochia', 'monilial vaginitis', 'multiple pregnancy', 'myoma of uterus', 'oligohydramnios', 'ovarian tumour', 'pelvic inflammatory disease', 'placenta previa', 'placental abruption', 'pregnancy-hypertension syndrome', 'premature birth', 'premature rupture of membrane', 'postpartum hemorrhage', 'puerperal infection', 'rupture of uterus', 'trichomonas vaginitis', 'uteroplacental apoplexy', 'vulvitis']
ophthalmology_and_otorhinolaryngology: ['amblyopia', 'tonsillitis', 'astigmatism', 'carcinoma of nasphyarynx', 'carcinoma of larynx', 'cataract', 'tinnitus', 'chalazion', 'colour blindness', 'deflection of nasal septum', 'deafness', 'furuncle of nasalvestibule', 'glaucoma', 'heterotropia', 'hyperopia', 'injury of cornea', 'ceruminal impaction', 'iritis', 'keratitis', 'labyrinthitis', 'laryngitis', 'mastoiditis', 'myopia', 'nasal sinusitis', 'otitis media', 'obstruction of larynx', 'peritonsillar abscess', 'pharyngitis', 'rhinitis']
dermatolory: ['acne', 'carcinoma of skin', 'bed sore', 'decubitus ulcer', 'drug eruption', 'eczema', 'herpes simplex', 'herpes zoster', 'lupus erythematosis', 'psoriasis', 'urticaria']

View File

@ -1,5 +1,5 @@
en:
faker:
en:
faker:
games:
elder_scrolls:
race: ["Altmer", "Argonian", "Bosmer", "Breton", "Dunmer", "Dwemer", "Imperial", "Khajiit", "Nord", "Orc", "Redguard","Riekling"]
@ -9,3 +9,48 @@ en:
city: ["Solitude", "Winterhold", "Markarth", "Daggerfall", "Silvenar", "Tignus", "Lainlyn", "Dwyynen", "Glenpoint", "Whiterun", "Falkreath","Ykalon","Kozanset", "Kambria","Menevia", "Betony", "Northmoor", "Tulune", "Alcaire", "Verkarth", "Davon's Watch", "Abah's Landing", "Clockwork City", "Wayrest", "Stormhold", "Sentinel", "Dawnstar", "Morthal","Riften","Windhelm","Dragon Bridge","Helgen", "Ivarstead", "Karthwasten", "Riverwood", "Rorikstead", "Shor's Stone"]
first_name: ["Balgruuf", "Ralof", "Hadvar", "Irileth", "Gormlaith", "Farengar", "Felldir", "Hakon", "Iddra", "Malborn", "Tsun","Ysgramor", "Tsun", "Gerdur", "Dirge", "Orgnar", "Septimus", "Urag", "Brynjolf", "Faralda", "Vignar", "Elenwen", "Rulindil", "Gissur", "Drahff", "Hewnon", "Gian", "Sulla", "Umana", "J'darr", "Astrid", "Nazir", "Maliq", "Babette", "Gabriella", "Festus", "Arnbjorn", "Veezara", "Kodlak", "Aela", "Farkas", "Vilkas", "Skjor", "Athis", "Njada", "Ria", "Torvar", "Brill", "Eorlund", "Tilma", "Hestla", "Askar","Mercer", "Delvin", "Vex", "Tonilia", "Sapphire", "Cynric", "Niruin", "Rune", "Thrynn", "Vipir", "Garthar", "Ravyn", "Etienne", "Molgrom", "Karliah", "Syndus", "Vanryth", "Gulum-Ei", "Enthir", "Niranye", "Endon", "Mallus", "Athel", "Glover", "Erikur", "Ri'saad", "Atahbah", "Ma'randru-jo", "Khayla", "Ahkari", "Zaynabi", "Dro'marash", "Kharjo", "Ma'dran", "Ma'jhad", "Ra'zhinda", "Mjoll", "Brand-shei", "Inigo"]
last_name: ["The Old", "The Greater", "The Lesser", "One-Eye", "Golden-Hilt", "Secret-Fire", "Septim", "Signus", "gro-Shub","Gray-Mane", "Black-Skeever", "The Fist", "Krex", "Whitemane", "Hunter", "Stonearm","The Haggard", "The Unbroken", "The Man", "Ember-Master", "Battle-Born", "Black-Briar", "Lothaire", "Frey", "Mallory", "Endell", "The Fleet", "Imyan", "Rarnis", "Twice-Killed", "Gatharian", "Maccius", "Newberry", "Cruel-Sea", "The Lion"]
quote: [
"You plod along, putting one foot before the other, look up, and suddenly, there you are. Right where you wanted to be all along.",
"Combatant from the blue team. You may leave the arena and rest now. You have earned it.",
"Sometimes life puts you in difficult circumstances you didn't choose. But being happy or unhappy is a choice you make, and I've chosen to make the best of things that I can.",
"My father taught me an important lesson many years ago. He said, 'Gwinlin, you have the whole world before you. Go out and experience it... be whatever you want to be.' So I took his advice, and here I am. This life might not look like much to you, but I'm content, and isn't that all that matters?",
"What is better: To be born good, or to overcome one's evil nature through great effort?",
"Wealth beyond measure, Outlander.",
"May your roads lead to warm sands.",
"I still don't know if there is a divine plan, but I've come to realize that it doesn't matter. What matters is that we act; that we do what's right when confronted with evil. That's what you did at Kvatch. It wasn't the gods that saved us, it was you.",
"What a fool you are. I'm a god! How can you kill a god? How could you be so naive? What a grand and intoxicating innocence. There is no escape. No recall or intervention works in this place. Come, lay down your weapons. It is not to late for my mercy.",
"Never should have come here.",
"The best techniques are passed on by the survivors.",
"The results of hard work and dedication always look like luck. But you know you've earned every ounce of your success.",
"Wake up. We're here. Why are you shaking? Are you okay? Wake up.",
"Not even last quarter's storm could wake you. I heard them say we've reached Adulthood, I'm sure they'll let us go.",
"Quiet, here comes the guard. You better do what they say.",
"Do you get to the cloud district very often?",
"Change will preserve us! It is the lifeblood of the world. It will move mountains! It will mount movements!",
"It's the grand champion! I can't believe it's you, standing here, next to me!",
"Why walk when you can ride?",
"Remember, your mind is the best weapon you have.",
"Brave hearts beat lesser ones. That's the decider.",
"Use Nature's gifts wisely. Respect her power, and fear her fury.",
"Treasure the gifts of friendship. Seek joy and inspiration in the mysteries of love.",
"Wait, I know you",
"Candy, candy -- he makes so much. Uncle Sweetshare has a magic touch! So it's back to the workshop in the snow! With lovely lanterns all aglow! He he! Ha ho! He he he ha ha ho!",
"Let me guess, somebody stole your sweetroll.",
"Can't wait to count out your coin!",
"You will find your own path. Take care... there will be blood and death before the end.",
"My ancestors are smiling at me, Imperials. Can you say the same?",
"KHAJIIT HAS WARES, IF YOU HAVE COIN",
"STOP RIGHT THERE YOU CRIMINAL SCUM!",
"Stupid bees and their stupid honey!",
"Have you heard of the high elves?",
"Sheggorath, you are the Skooma Cat, for what is crazier than a cat on skooma?",
"When we understand the events that occur to us, the events become history. History is understanding. Otherwise we are all just dumb animals trying to get in out of the cold.",
"Hey, there's my new pal! So what can I do for you? Need some items? Or maybe you ready to unload something? Whatever you need!",
"Children, listen as the shadows cross your sleeping hutch, And the village sleeps away, streets emptied of the crowds, And the moons do balefully glare through the nightly clouds, And the graveyard's people rest, we hope, in eternal sleep, Listen and you'll hear the whispered tap of the footsteps creep, Then pray you'll never feel the Worm King's awful touch.",
"He killed them! All of those people! We… we have to get him before he gets us! We have to kill that murdering swine!",
"Skooma! Oh yeah… You want to… want to be my friend? I'll… I'll tell you what… Skooma's the only thing… the only thing I want…",
"You impossible fool. What possessed you to think I would suggest a meeting here, of all places?",
"Some may call this junk, me, I call them treasures.",
"I'd be a lot happier and a lot warmer with a belly full of mead.",
"No lollygagin",
"I'm not a man, I'm a weapon in human form."]

View File

@ -0,0 +1,103 @@
en:
faker:
englandfootball:
leagues: [
"PremierLeague",
"EFLChampionship",
"EFLLeagueone",
"EFLLeaguetwo"
]
teams: [
"NewcastileUnited",
"LecesterCityF.C.",
"LiverpoolF.C.",
"LeedsUnitedF.C.",
"ManchesterCityF.C.",
"ManchesterUnitedF.C.",
"BurnleyF.C.",
"Brighton&HoveAlbionF.C.",
"SouthamptonF.C.",
"SheffieldUnitedF.C.",
"ArsenalF.C.",
"AstonVillaF.C.",
"EvertonF.C.",
"WolverhamptonWanderersF.C.",
"WestBromwichAlbionF.C.",
"WestHamUnitedF.C.",
"ChelseaF.C.",
"TottenhamHotspurF.C.",
"CrystalPalaceF.C.",
"FulhamF.C.",
"NorwichCityF.C.",
"NottinghamForestF.C.",
"DerbyCountyF.C.",
"RotherhamUnitedF.C.",
"LutonTownF.C.",
"ReadingF.C.",
"MiddlesbroughF.C.",
"MillwallF.C.",
"BarnsleyF.C.",
"BirminghamCity.F.C.",
"A.F.C.Bournemouth",
"BrentfordF.C.",
"BristolCityF.C.",
"BlackburnRoversF.C.",
"SheffieldWednesdayF.C.",
"SwanseaCityA.F.C.",
"StokeCityF.C.",
"WatfordF.C.",
"WycombeWanderersF.C.",
"CardiffCityF.C.",
"CoventryCity.F.C.",
"QueensParkRangersF.C.",
"PrestonNorthEndF.C.",
"HuddersfieldTownA.F.C.",
"NorthamptonTownF.C.",
"DoncasterRoversF.C.",
"RochdaleA.F.C.",
"LincolnCityF.C.",
"MiltonKeynesDonsF.C.",
"BurtonAlbionF.C.",
"BristolRoversF.C.",
"BlackpoolF.C.",
"SunderlandA.F.C.",
"ShrewsburyTownF.C.",
"SwindonTownF.C.",
"AccringtonStanleyF.C.",
"OxforUnitedF.C.",
"WiganAthleticF.C.",
"AFCWimbledon",
"IpswichTownF.C.",
"GillinghamF.C.",
"CharltonAthleticF.C.",
"CreweAlexandraF.C.",
"PortsmouthF.C.",
"PlymouthArgyleF.C.",
"FleetwoodTownF.C.",
"PeterboroughUnitedF.C.",
"HullCityA.F.C",
"GrimsbyTownF.C.",
"NewportCountyA.F.C.",
"LeytonOrientF.C.",
"MansfieldTownF.C.",
"MorecambeF.C.",
"BarrowA.F.C.",
"BoltonWanderersF.C.",
"BradfordCityA.F.C.",
"SouthendUnitedF.C.",
"SalfordCityF.C.",
"ScunthorpeUnitedF.C.",
"StevenageF.C.",
"ExeterCityF.C.",
"OldhamAthleticA.F.C.",
"WalsallF.C.",
"CheltenhamTownF.C.",
"CarlisleUnitedF.C.",
"CambridgeUnitedF.C.",
"ColchesterUnitedF.C.",
"CrawleyTownF.C.",
"TranmereRoversF.C.",
"ForestGreenRoversF.C.",
"PortValeF.C.",
"HarrogateTownA.F.C."
]

View File

@ -1,5 +1,6 @@
en:
faker:
gender:
types: ["Female", "Male", "Non-binary", "Agender", "Genderfluid", "Genderqueer", "Bigender", "Polygender"]
binary_types: ["Female", "Male"]
en:
faker:
gender:
types: ["Female", "Male", "NonBinary", "Agender", "Genderfluid", "Genderqueer", "Bigender", "Polygender"]
binary_types: ["Female", "Male"]
short_binary_types: ["f", "m"]

View File

@ -0,0 +1,5 @@
en:
faker:
kaamelott:
characters: ["Angharad", "Anna", "Appius Manilius", "Arthur", "Attila", "Belt", "Père Blaise", "Bohort", "Breccan", "Le roi burgonde", "Caius Camillus", "Calogrenant", "Capito", "César", "Cryda de Tintagel", "Dagonet", "La Dame du Lac", "Demetra", "Le duc d'Aquitaine", "Edern", "Élias de Kelliwic'h", "Galessin", "Gauvain", "Goustan", "Grüdü", "Guenièvre", "Guethenoc", "Hervé de Rinel", "L'interprète burgonde", "Le Seigneur Jacca", "Les Jumelles du pêcheur", "Le Jurisconsulte", "Kadoc", "Karadoc", "Lancelot", "Léodagan", "Loth", "Le maître d'armes", "Méléagant", "Manius Macrinus Firmus", "Merlin", "Mevanwi", "Perceval", "Le Répurgateur", "Roparzh", "Lucius Sillius Sallustius", "Séfriane d'Aquitaine", "Séli", "Spurius Cordius Frontinius", "Le tavernier", "Urgan", "Vérinus", "Venec", "Ygerne", "Yvain"]
quotes: ["Nous sommes jeunes, nous marchons à pieds... J'opterai donc pour un surnom en rapport : les Petits Pédestres.", "Sur une échelle de 2 à 76, et là je préfère prendre large, de 2 à 71 on ne nous écoute pas, de 72 à 75, on nous écoute toujours pas, et seulement à 76 on nous laisse parler sans nous engueuler.", "Sinon c'est les relances : doublette ; jeu carré ; jeu de piste ; jeu gagnant ; jeu moulin ; jeu-jeu ; joue-jeu ; joue-joue ; joue-jié ; joue-ganou ; gagnar ; catakt ; tacat ; cacatac ; cagat-cata et ratacat-mic. Ou : chante Sloubi. Nous, on va faire que chante Sloubi.", "Elle est où la poulette ?", "Sloubi 1, sloubi 2, sloubi 3, sloubi 4, sloubi 5 [...] sloubi 324, sloubi 325 !", "Arthur ! Kaamelott, c'est zéro ! Des cailloux, des cailloux, des cailloux, ça m'énerve !", "Arthour ! Couhillère !", "Ça y est... je vois trouble. C'est le manque de gras, je me dessèche.", "Comment vous dire... C'est systématiquement débile mais c'est toujours inattendu.", "Du passé faisons table en marbre.", "Les chiffres, c'est pas une science exacte figurez-vous !", "Sire, Sire ! On en a gros !", "Et toc ! Remonte ton slibard, Lothard !", "13, 14, 15... Enfin tous les chiffres impairs jusqu'à 22.", "Misa brevis et spiritus maxima. Ça veut rien dire, mais je suis très en colère contre moi même.", "C'est pas faux.", "JE NE MANGE PAS DE GRAINES !", "Qu'est-ce qui est petit et marron ?", "Et si je vous dis que vous êtes deux glands, là, vous avez du péremptoire. C'est vous qui voyez.", "Donc, pour résumer, je suis souvent victime des colibris, sous-entendu des types qu'oublient toujours tout", "Vous nous utilisez bon gré malgré pour arriver sur la fin.", "Lorsqu'on le tient par la partie sporadique, ou boulière, le fenouil est un objet redondant.", "Tout à l'heure, on a vu que le chapelet de saucisses n'était pas un objet redondant. Et pourtant, on a pu lui trouver une utilisation périmétrique en s'en servant comme un fouet.", "A chaque fois que vous parlez de lui, à partir de maintenant, dans les écritures, vous lappellerez... Coco lAsticot.", "Hé bah allez, une journée d'plus en moins. On va aller dormir et pi demain on recommence. Je peux vous dire que tavernier, c'est pas une sinécure.", "La prochaine fois que vous faites venir un barde, je lui ouvre le bide de là à là, j'lui sors les boyaux et je file sa langue à bouffer aux chiens. C'est clair, ça ?", "La patience est un plat qui se mange sans sauce."]

View File

@ -0,0 +1,77 @@
en:
faker:
mountain:
range: [
"Himalayas",
"Karakoram",
"Hindu Kush",
"Pamirs",
"Hengduan Mountains",
"Tian Shan",
"Kunlun",
"Transhimalaya",
"Andes",
"Hindu Raj",
"Alaska Range",
"Saint Elias Mountains",
"Caucasus Mountains"
]
name: [
"Everest",
"Cerro Aconcagua",
"Denali",
"Kilimanjaro",
"Elbrus",
"Vinson Massif",
"Puncak Jaya",
"K2",
"Kangchenjunga",
"Lhotse",
"Makalu",
"Mount Logan",
"Pico de Orizaba",
"Mount Saint Elias",
"Popocatépetl",
"Mount Foraker",
"Mount Lucania",
"Iztaccíhuatl",
"King Peak",
"Mount Bona",
"Cristobal Colon",
"Citlaltepetl",
"Mount Blanc",
"Damavand",
"Klyuchevskaya",
"Nanga Parbat",
"Mauna Kea",
"Jengish Chokusu (Pik Pobeda)",
"Chimborazo",
"Bogda Shan",
"Namcha Barwa",
"Kinabalu",
"Mount Rainier",
"Ras Dashen",
"Tajumulco",
"Pico Bolivar",
"Mount Fairweather",
"Margherita",
"Kangchenjunga",
"Tirich Mir",
"Koryaksky",
"Gunung Agung",
"Popocatepetl",
"Mount Whitney",
"Haleakala",
"Shiveluch",
"Nanda Devi",
"Mount Waddington",
"Mount Marcus Baker",
"Manaslu",
"Ojos del Salado",
"Monte San Valentin",
"Mount Fuji",
"Mount Kenya",
"Mount Ararat",
"Dhaulagiri I",
"Etna"
]

View File

@ -27,3 +27,4 @@ en:
descriptor: [Lead, Senior, Direct, Corporate, Dynamic, Future, Product, National, Regional, District, Central, Global, Customer, Investor, Dynamic, International, Legacy, Forward, Internal, Human, Chief, Principal]
level: [Solutions, Program, Brand, Security, Research, Marketing, Directives, Implementation, Integration, Functionality, Response, Paradigm, Tactics, Identity, Markets, Group, Division, Applications, Optimization, Operations, Infrastructure, Intranet, Communications, Web, Branding, Quality, Assurance, Mobility, Accounts, Data, Creative, Configuration, Accountability, Interactions, Factors, Usability, Metrics]
job: [Supervisor, Associate, Executive, Liaison, Officer, Manager, Engineer, Specialist, Director, Coordinator, Administrator, Architect, Analyst, Designer, Planner, Orchestrator, Technician, Developer, Producer, Consultant, Assistant, Facilitator, Agent, Representative, Strategist]
blood_group: [O-, O+, A-, A+, B-, B+, AB-, AB+]

View File

@ -0,0 +1,31 @@
en:
faker:
photography:
term: ["aperture", "exposure", "focal length", "film", "flash", "mirror", "reflection", "viewfinder", "hotshoe", "shutter", "lens", "35mm", "grain", "bokeh", "focus", "aberration", "b/w", "ISO", "DOF", "SLR", "DSLR", "Low key", "High key", "HDR"]
brand: ["Agfa", "Fujifilm", "Petnax", "Canon", "Casio", "Nikon", "Hama", "Olympus", "Sony", "Konica", "Minolta", "Konica Minolta", "Lumix", "Praktika", "Polaroid", "Panasonic", "Samsung", "Ricoh", "Tamron", "Sigma", "Arsenal", "BelOMO", "KMZ", "Leica", "LOMO", "FED", "Kodak", "Hasselblad", "llford", "Exacta", "Carl Zeiss", "Tokina", "Kenko", "Goerz", "Yashica", "Soligor GmbH", "VOMZ", "LOGP"]
camera: ["FED 1","FED 2","FED 3","FED 4","FED 5","KMZ Moskva-1","KMZ Moskva-2","KMZ Moskva-2A","KMZ Moskva-3","KMZ Moskva-4","KMZ Moskva-5", "KMZ Iskra", "KMZ Iskra-2", "Zorki", "Zorki-2", "Zorki-3", "Zorki-4", "Zorki-10","Zorki-11","Zorki-12","Zorki-15","Zorki-16", "MIR",
"Zenit-200A", "Zenit-200AF", "Zenit-200AF-U", "Zenit-200-2AF", "Zenit-200-Zoom", "Zenit-compact", "Zenit-104", "Zenit-501P", "Zenit-502P", "Zenit-503H", "Zenit-504G", "Zenit-510", "Zenit-520", "Zenit-610", "Zenit-620", "Zenit-630",
"ZENIT-APS", "ZENIT-96", "ZENIT-E", "ZENIT-E2", "ZENIT-U", "ZENIT-V", "ZENIT-EM", "ZENIT-EM2", "ZENIT-VM", "ZENIT-T1", "ZENIT-ET", "ZENIT-VE", "ZENIT-10", "ZENIT-11", "ZENIT-50", "ZENIT-M", "ZENIT-2",
"Zenit-DM3","Zenit-DM5", "ZENIT-Z1",
"Moment-20","Moment-20U", "ZENIT-70", "Foton", "Foton-2", "Foton-3", "Foton-M", "Foton-E", "Foton-PAK", "Foton-automat", "Foton-UFM (Moskva-UFM)", "Foton-5", "Foton-23", "Foton-super", "Panorama",
"Horizon-202-1", "Horizon-202-S", "Horizon-kompakt", "Horizon-S3", "Horizon-203", "PanArt-S3", "Horizon-203-U500", "Horizon-S3-sport", "Horizon-perfekt", "Horizon-205",
"Start", "Start-2", "Start-3", "ZENIT-7", "ZENIT-D", "ZENIT-8", "ZENIT-9", "ZENIT-20", "ZENIT-21", "ZENIT-MK", "ZENIT-22", "ZENIT-23", "ZENIT-MTL", "ZENIT-7000",
"Photosniper", "Photosniper FS-3", "Photosniper FS-4", "Photosniper FS-4M", "Photosniper FS-5", "Photosniper FS-12", "Photosniper FS-14", "Photosniper FS-122",
"Smena","Smena 2","Smena 3","Smena 4","Smena 6","Smena 8","Smena 11","Smena 12","Smena 7","Smena 9",
"Kiev 2","Kiev 3","Kiev 4","Kiev 5","Kiev 6","Kiev 10","Kiev 15","Kiev 17","Kiev 20","Kiev 88","Kiev 90","Salyut S","Mirage 19M",
"LOMO-130A","LOMO-135M","LOMO-Compact", "Almaz 104", "Almaz 101",
"Canon EOS 1000D", "Canon EOS 1100D", "Canon EOS 1300D", "Canon EOS 2000D", "Canon EOS 4000D", "Canon EOS 300D", "Canon EOS 350D", "Canon EOS 400D", "Canon EOS 450D", "Canon EOS 500D", "Canon EOS 550D", "Canon EOS 600D", "Canon EOS 650D", "Canon EOS 700D", "Canon EOS 750D", "Canon EOS 760D", "Canon EOS 800D", "Canon EOS 10D", "Canon EOS 20D", "Canon EOS 30D", "Canon EOS 40D", "Canon EOS 50D", "Canon EOS 60D", "Canon EOS 70D", "Canon EOS 77D", "Canon EOS 80D", "Canon EOS 90D", "Canon EOS-1D", "Canon EOS-1D Mark II", "Canon EOS-1D Mark III", "Canon EOS-1D Mark IV", "Canon EOS-1Ds", "Canon EOS-1D X", "Canon EOS-1Ds", "Canon EOS-1Ds Mark II", "Canon EOS-1Ds Mark III", "Canon EOS 5D", "Canon EOS 5D Mark II", "Canon EOS 5D Mark III", "Canon EOS 5D Mark IV", "Canon EOS 5DS", "Canon EOS 6D", "Canon EOS 7D", "Canon EOS 7D Mark II", "Canon EOS M", "Canon EOS M2", "Canon EOS M3", "Canon EOS M5", "Canon EOS M6", "Canon EOS M50", "Canon EOS M100", "Canon PowerShot", "Canon PowerShot G", "Canon IXUS",
"Canon 7", "Canon II", "Canon P", "Canon VT", "Canonet", "Canonet G-III QL17", "Canon EOS R", "Canon EOS RP", "Canon EOS C200", "Canon EOS C300", "Canon EOS C500", "Canon EOS C100", "Canon EOS C300 Mark II", "Canon A-1", "Canon AE-1", "Canon AE-1 Program", "Canon AL-1", "Canon AT-1", "Canon AV-1", "Canon F-1", "Canon New F-1", "Canon FTb", "Canon TLb", "Canon TX", "Canon T50", "Canon T60", "Canon T70", "Canon T80", "Canon T90", "Canon FP", "Canon FT QL", "Canon FX", "Canon Pellix", "Canon Canonflex", "Canon ELPH 490Z",
"Nikon D1", "Nikon D1H", "Nikon D1X", "Nikon D2H", "Nikon D2Hs", "Nikon D2X", "Nikon D2Xs", "Nikon D3", "Nikon D3S", "Nikon D3X", "Nikon D4", "Nikon D4S", "Nikon D5", "Nikon D40", "Nikon D40x", "Nikon D50", "Nikon D60", "Nikon D70", "Nikon D70s", "Nikon D80", "Nikon D90", "Nikon D100", "Nikon D200", "Nikon D300", "Nikon D300S", "Nikon D500", "Nikon D600", "Nikon D610", "Nikon D700", "Nikon D750", "Nikon D800", "Nikon D800E", "Nikon D810", "Nikon D810A", "Nikon D850", "Nikon D3000", "Nikon D3100", "Nikon D3200", "Nikon D3300", "Nikon D3400", "Nikon D3500", "Nikon D5000", "Nikon D5100", "Nikon D5200", "Nikon D5300", "Nikon D5500", "Nikon D5600", "Nikon D7000", "Nikon D7100", "Nikon D7200", "Nikon D7500", "Nikon E2", "Nikon E2N", "Nikon E2NS", "Nikon E2S", "Nikon E3", "Nikon E3s",
"Nikon F3AF", "Nikon F4", "Nikonos RS", "Nikon F5", "Nikon F6", "Nikon F-501", "Nikon F-801", "Nikon F-801S", "Nikon F90", "Nikon F90X", "Nikon F80", "Nikon F100", "Nikon F-601", "Nikon F70", "Nikon F75", "Nikon F-401", "Nikon F-401S", "Nikon F-401X", "Nikon F50", "Nikon F60", "Nikon F65", "Nikon F55", "Nikon I","Nikon M","Nikon S","Nikon S2","Nikon SP","Nikon S3","Nikon S4","Nikon S3M","Nikon S3","Nikon SP",
"Leica S", "Leica S-E", "Leica S2","Leica II",
"Pentax 645D", "Pentax 645Z","Pentax *ist D","Pentax *ist DL","Pentax *ist DL2","Pentax *ist DS","Pentax *ist DS2", "Pentax K-1","Pentax K-3","Pentax K-3 II","Pentax K-5","Pentax K-5 II","Pentax K-30","Pentax K-50","Pentax K-70", "Pentax K-r","Pentax K-S1","Pentax K-S2","Pentax K-x","Pentax K-7","Pentax K10D","Pentax K20D","Pentax K100D","Pentax K100D Super", "Pentax K110D","Pentax K200D","Pentax K2000","Pentax KP","Pentax MZ-D",
"Olympus E-1", "Olympus E-3", "Olympus E-5", "Olympus E-10", "Olympus E-20", "Olympus E-30", "Olympus E-300", "Olympus E-330", "Olympus E-400", "Olympus E-410", "Olympus E-420", "Olympus E-450", "Olympus E-500", "Olympus E-510", "Olympus E-520", "Olympus E-620",
"Fujix DS-560", "Fujix DS-565", "FinePix IS Pro", "FinePix S1 Pro", "FinePix S2 Pro", "FinePix S3 Pro", "FinePix S3 Pro UVIR", "FinePix S5 Pro",
"Sony Alpha 100", "Sony Alpha 200", "Sony Alpha 230", "Sony Alpha 290", "Sony Alpha 300", "Sony Alpha 330", "Sony Alpha 350", "Sony α390", "Sony Alpha 500", "Sony Alpha 550", "Sony Alpha 580", "Sony Alpha 700", "Sony Alpha 850", "Sony Alpha 900", "Sony DSLR-A100", "Sony DSLR-A100/B", "Sony DSLR-A100/S", "Sony DSLR-A200", "Sony DSLR-A230", "Sony DSLR-A290", "Sony DSLR-A300", "Sony DSLR-A300/N", "Sony DSLR-A330", "Sony DSLR-A330/T", "Sony DSLR-A350", "Sony DSLR-A350/N", "Sony DSLR-A380", "Sony DSLR-A390", "Sony DSLR-A450", "Sony DSLR-A500", "Sony DSLR-A550", "Sony DSLR-A560", "Sony DSLR-A580", "Sony DSLR-A700", "Sony DSLR-A850", "Sony DSLR-A900"]
lens: ["500mm/8", "17mm/2.0", "35mm/1.8", "50mm/1.2", "50mm/1.4", "50mm/1.8", "17-85mm/4.0-8.0", "85mm/1.2", "40mm/2.8", "70300mm/4.55.6", "300mm/2.8", "35-350mm/3.5-5.6", "75-300mm/4-5.6", "24mm/1.4", "1740mm/4", "24105mm/4", "70200mm/2.8", "70200mm/4", "200-400mm/4", "85mm/1.8", "135mm/4", "600mm/4", "800mm/5.6", "1855mm/3.55.6", "55250mm/45.6", "10-24mm/3.5-4.5", "12-24mm/4", "16-85mm/3.5-5.6", "17-55mm/2.8", "18-55mm/3.5-5.6", "18-70mm/3.5-4.5", "18-105mm/3.5-5.6", "18-140mm/3.5-5.6", "18-200mm/3.5-5.6", "18-300mm/3.5-5.6", "18-300mm/3.5-6.3", "55-200mm/4-5.6", "fisheye", "tele", "wide-angle"]
genre: ["Abstract", "Portrait", "Landscape", "Techno", "Transportation", "Aviation", "Trains", "Ships", "Automobiles", "Bikes", "Army", "Navy", "Flora", "Fauna", "Sports", "Street", "City", "Village", "Country side", "Architecture", "Interior", "Food", "Wedding", "Stock", "Paparazzi", "Social", "Fashion", "Beauty", "Nude", "Science", "Space", "Aerial", "Industrial", "Artistic", "Underwater", "Night", "Low key", "High key", "Lomo", "Panoramic", "Macro", "Micro", "nano"]
imagetag: ["B/W", "wall", "sky", "clouds", "grass", "wood", "street", "city", "techno", "cars", "planes", "people", "tea", "coffee", "restaurant", "forest", "meadow", "mountain", "water", "river", "sunny", "cloudy", "rainy", "rain", "wave", "drop", "girl", "brick", "ocean", "sea", "river", "spring", "festival", "celebration", "show", "dances", "universe", "stars", "galaxy", "MIR", "ISS", "rocket", "jet", "fighter", "singer", "action", "show", "theater", "performance"]
aperture: ["f/0.5", "f/0.65", "f/0.7", "f/0.75", "f/0.85", "f/0.87", "f/0.95", "f/1.0", "f/1.2", "f/1.4", "f/1.8", "f/2.0", "f/2.8", "f/3.2", "f/4.0", "f/4.5", "f/5.0", "f/5.6", "f/6.3", "f/7.1", "f/8.0", "f/9.0", "f/10", "f/11", "f/13", "f/14", "f/16", "f/18", "f/20", "f/22", "f/25", "f/29", "f/32", "f/45", "f/64"]
shutter: ["32000", "16000", "8000", "6400", "5000", "4000", "3200", "2500", "2000", "1600", "1250", "1000", "800", "640", "500", "400", "320", "250", "200", "160", "125", "100", "80", "60", "50", "40", "1/30", "1/25", "1/20", "1/15", "1/13", "1/10", "1/8", "1/6", "1/5", "1/4", "1/2", "1", "2", "4", "8", "15", "30"]
iso: ["50", "64", "100", "125", "160", "200", "250", "320", "400", "500", "640", "800", "1000", "1250", "1600", "2000", "2500", "3200", "4000", "5000", "6400", "8000", "10000", "12800", "16000", "20000", "25600", "52200", "104400"]

View File

@ -0,0 +1,101 @@
---
en:
faker:
sip:
methods: ["INVITE", "ACK", "BYE", "CANCEL", "REGISTER", "OPTIONS", "PRACK", "SUBSCRIBE", "NOTIFY", "PUBLISH", "INFO", "REFER", "MESSAGE", "UPDATE"]
content:
types: [
"application/sdp",
"application/resource-lists",
"application/pkcs7-mime",
"application/pkcs7-signature",
"application/x-private",
"application/xml",
"multipart/mixed",
"multipart/alternative",
"multipart/related",
"text/html"]
response:
codes:
provisional: ["100", "180", "181", "182", "183", "199"]
success: ["200", "202"]
redirection: ["300", "301", "302", "305", "380"]
clientError: [
"400",
"401",
"402",
"403",
"404",
"405",
"406",
"407",
"408",
"409",
"410",
"413",
"414",
"415",
"416",
"420",
"421",
"422",
"423",
"480",
"481",
"482",
"483",
"484",
"485",
"486",
"487",
"488",
"491",
"493"]
serverError: ["500", "501", "502", "503", "504", "505", "513", "555", "580"]
globalError: ["600", "603", "604", "606", "607"]
phrases:
provisional: ["Trying", "Ringing", "Call Is Being Forwarded", "Queued", "Session Progress", "Early Dialog Terminated"]
success: ["OK", "accepted"]
redirection: ["Multiple Choices", "Moved Permanently", "Moved Temporarily", "Use Proxy", "Alternative Service"]
clientError: [
"Bad Request",
"Unauthorized",
"Payment Required",
"Forbidden",
"Not Found",
"Method Not Allowed",
"Not Acceptable",
"Proxy Authentication Required",
"Request Timeout",
"Conflict",
"Gone",
"Request Entity Too Large",
"Request-URI Too Long",
"Unsupported Media Type",
"Unsupported URI Scheme",
"Bad Extension",
"Extension Required",
"Session Interval Too Small",
"Interval Too Brief",
"Temporarily Unavailable",
"Call/Transaction Does Not Exist",
"Loop Detected",
"Too Many Hops",
"Address Incomplete",
"Ambiguous",
"Busy Here",
"Request Terminated",
"Not Acceptable Here",
"Request Pending",
"Undecipherable"]
serverError: [
"Server Internal Error",
"Not Implemented",
"Bad Gateway",
"Service Unavailable",
"Server Time-out",
"Version Not Supported",
"Message Too Large",
"Push Notification Service Not Supported",
"Precondition Failure"]
globalError: ["Busy Everywhere", "Decline", "Does Not Exist Anywhere", "Not Acceptable", "Unwanted"]

View File

@ -11,7 +11,7 @@ en:
agency: ['National Aeronautics and Space Administration', 'European Space Agency', 'German Aerospace Center', 'Indian Space Research Organization', 'China National Space Administration', 'UK Space Agency', 'Brazilian Space Agency', 'Mexican Space Agency', 'Israeli Space Agency', 'Italian Space Agency', 'Japan Aerospace Exploration Agency', 'National Space Agency of Ukraine', 'Russian Federal Space Agency', 'Swedish National Space Board']
agency_abv: ['NASA', 'AEM', 'AEB', 'UKSA', 'CSA', 'CNSA', 'ESA', 'DLR', 'ISRO', 'JAXA', 'ISA', 'CNES', 'NSAU', 'ROSCOSMOS', 'SNSB']
nasa_space_craft: ['Orion', 'Mercury', 'Gemini', 'Apollo', 'Enterprise', 'Columbia', 'Challenger', 'Discovery', 'Atlantis', 'Endeavour']
company: ['Rocket Lab', SpaceX', 'Blue Origin', 'Virgin Galactic', 'SpaceDev', 'Bigelow Aerospace', 'Orbital Sciences', 'JPL', 'NASA Jet Propulsion Laboratory']
company: ['Rocket Lab', 'SpaceX', 'Blue Origin', 'Virgin Galactic', 'SpaceDev', 'Bigelow Aerospace', 'Orbital Sciences', 'JPL', 'NASA Jet Propulsion Laboratory']
distance_measurement: ['light years', 'AU', 'parsecs', 'kiloparsecs', 'megaparsecs']
meteorite: ['Aarhus', 'Abee', 'Adelie Land', 'Adhi Kot', 'Adzhi-Bogdo', 'Santa Rosa de Viterbo', 'Agen', 'Akbarpur', 'Albareto', 'Allan Hills 84001', 'Allan Hills A81005', 'Allegan', 'Allende', 'Ambapur Nagla', 'Andura', 'Angers', 'Angra dos Reis', 'Ankober', 'Anlong', 'Annaheim', 'Appley Bridge', 'Arbol Solo', 'Archie', 'Arroyo Aguiar', 'Assisi', 'Atoka', 'Avanhandava', 'Bacubirito', 'Baszkówka','Beardsley', 'Bellsbank', 'Bench Crater', 'Benton', 'Białystok', 'Blithfield','Block Island', 'Bovedy', 'Brachina', 'Brahin', 'Brenham', 'Buzzard Coulee','Campo del Cielo', 'Canyon Diablo', 'Cape York', 'Carancas', 'Chambord','Chassigny', 'Chelyabinsk', 'Chergach', 'Chinga', 'Chinguetti', 'Claxton','Coahuila', 'Cranbourne', 'D''Orbigny', 'Dronino', 'Eagle Station', 'Elbogen','Ensisheim', 'Esquel', 'Fukang', 'Gancedo', 'GaoGuenie', 'Gay Gulch', 'Gebel Kamil', 'Gibeon', 'Goose Lake', 'Grant', 'Hadley Rille', 'Heat Shield Rock','Hoba', 'Homestead', 'Hraschina', 'Huckitta', 'Imilac', 'Itqiy', 'Kaidun','Kainsaz', 'Karoonda', 'Kesen', 'Krasnojarsk', 'L''Aigle', 'Lac Dodon', 'Lake Murray', 'Loreto', 'Los Angeles', 'Łowicz', 'Mackinac Island', 'Mbozi','Middlesbrough', 'Millbillillie', 'Mineo', 'Monte Milone', 'Moss','Mundrabilla', 'Muonionalusta', 'Murchison', 'Nakhla', 'Nantan','Neuschwanstein', 'Northwest Africa 7034', 'Northwest Africa 7325', 'Norton County', 'Novato', 'Northwest Africa 3009', 'Oileán Ruaidh (Martian)', 'Old Woman', 'Oldenburg', 'Omolon', 'Orgueil', 'Ornans', 'Osseo', 'Österplana 065','Ourique', 'Pallasovka', 'Paragould', 'Park Forest', 'Pavlovka', 'Peace River','Peekskill', 'Penouille', 'Polonnaruwa', 'High Possil', 'Příbram', 'Pultusk','Qidong', 'Richardton', 'Santa Vitoria do Palmar', 'Sayh al Uhaymir 169','Seymchan', 'Shelter Island', 'Shergotty', 'Sikhote-Alin', 'Sołtmany','Springwater', 'St-Robert', 'Stannern', 'Sulagiri', 'Sutter''s Mill','Sylacauga', 'Tagish Lake', 'Tamdakht', 'Tenham', 'Texas Fireball', 'Tissint','Tlacotepec', 'Toluca', 'Treysa', 'Twannberg', 'Veliky Ustyug', 'Vermillion','Weston', 'Willamette', 'Winona', 'Wold Cottage', 'Yamato 000593','Yamato 691','Yamato 791197', 'Yardymly', 'Zagami', 'Zaisho', 'Zaklodzie']
launch_vehicle: ['Antares', 'Ariane 5', 'Atlas', 'Diamant', 'Dnepr', 'Delta', 'Electron', 'Energia', 'Europa', 'Falcon 9', 'Falcon Heavy', 'GSLV', 'Juno', 'Long March', 'Mercury-Redstone', 'Minotaur', 'Pegasus', 'Proton', 'PSLV', 'Safir', 'Shavit', 'Saturn IV', 'Semiorka', 'Soyouz', 'Titan', 'Vega', 'Veronique', 'Zenit']

View File

@ -5,3 +5,4 @@ en:
location: ["Qo'noS", "Romulus", "Bajor", "Vulcan", "Neutral Zone", "Alpha Quadrant", "Beta Quadrant", "Delta Quadrant", "Gamma Quadrant", "Tau Ceti Prime", "Wolf 359", "Thalos VII", "Cardassia", "Trillius Prime", "Badlands", "Betazed", "Risa", "Deep Space Nine", "Ferenginar", "The Briar Patch", "Khitomer"]
specie: ["Breen", "El-Aurian", "Jem'Hadar", "Kazon", "Ocampa", "Q", "Ferengi", "Klingon", "Talaxian", "Vidiian", "Cardassian", "Vulcan", "Borg", "Romulan", "Vorta", "Andorian", "Bajoran", "Betazoid"]
villain: ["Q", "Gorn", "Khan Noonien Singh", "Ru'afo", "Maltz", "Kruge", "Ayel", "Admiral Marcus", "Martia", "Lt. Valeris", "V'ger", "God of Sha Ka Ree", "Admiral Dougherty", "Nero", "Krall", "Tolian Soran", "Shinzon", "General Chang", "Lursa", "B'Etor", "Borg Queen"]
klingon: ["tlhIngan maH", "bogh tlhInganpu', SuvwI'pu' moj, Hegh", "SuvmeH 'ej charghmeH bogh tlhInganpu'", "DabuQlu'DI' yISuv", "qa' wIje'meH maSuv", "bI'IQchugh yIvang", "tIqIpqu' 'ej nom tIqIp", "lumbe' tlhInganpu'.", "Dubotchugh yIpummoH", "mataHmeH maSachnIS"]

View File

@ -0,0 +1,352 @@
en:
faker:
starcraft:
units: [
"Archon",
"Carrier",
"Colossus",
"Dark Templar",
"High Templar",
"Immortal",
"Mothership",
"Observer",
"Phoenix",
"Probe",
"Sentry",
"Stalker",
"Void Ray",
"Warp Prism",
"Zealot",
"Oracle",
"Tempest",
"Mothership Core",
"Adept",
"Disruptor",
"Banshee",
"Battlecruiser",
"Ghost",
"Hellion",
"Marauder",
"Marine",
"Medivac Dropship",
"MULE",
"Raven",
"Reaper",
"SCV",
"Siege Tank",
"Thor",
"Viking",
"Auto-Turret",
"Point Defense Drone",
"Hellbat",
"Widow Mine",
"Liberator",
"Cyclone",
"Corruptor",
"Brood lord",
"Drone",
"Hydralisk",
"Infestor",
"Larva",
"Mutalisk",
"Overlord",
"Overseer",
"Queen",
"Roach",
"Ultralisk",
"Zergling",
"Baneling",
"Broodling",
"Changeling",
"Infested terran",
"Swarm Host",
"Viper",
"Lurker",
"Ravager"
]
buildings: [
"Assimilator",
"Cybernetics Core",
"Dark Shrine",
"Fleet Beacon",
"Forge",
"Gateway",
"Nexus",
"Photon Cannon",
"Pylon",
"Robotics Facility",
"Robotics Bay",
"Shield Battery",
"Stargate",
"Templar Archives",
"Twilight Council",
"Warp Gate",
"Armory",
"Barracks",
"Bunker",
"Command Center",
"Orbital Command",
"Planetary Fortress",
"Engineering Bay",
"Factory",
"Fusion Core",
"Ghost Academy",
"Missile turret",
"Refinery",
"Sensor Tower",
"Starport",
"Supply Depot",
"Reactor",
"Tech Lab",
"Baneling Nest",
"Creep Tumor",
"Evolution Chamber",
"Extractor",
"Hatchery",
"Lair",
"Hive",
"Hydralisk Den",
"Infestation Pit",
"Nydus Network",
"Nydus Worm",
"Roach Warren",
"Spawning Pool",
"Spine Crawler",
"Spire",
"Greater Spire",
"Spore Crawler",
"Ultralisk Cavern",
"Lurker Den"
]
characters: [
"Abathur",
"Alarak",
"Aldaris",
"Amon",
"Artanis",
"Daggoth",
"Carolina Davis",
"Dehaka",
"Gerard DuGalle",
"Edmund",
"Duke",
"Samir Duran",
"Emil Narud",
"Fenix",
"Tychus Findlay",
"Ariel Hanson",
"Matt Horner",
"Izsha",
"Karax",
"Sarah Kerrigan",
"Arcturus Mengsk",
"Valerian Mengsk",
"Overmind",
"Raszagal",
"Jim Raynor",
"Reigel",
"Rohana",
"Selendis",
"Egon Stetmann",
"Alexei Stukov",
"Rory Swann",
"Talandar",
"Tassadar",
"Nova Terra",
"Gabriel Tosh",
"Vorazun",
"Horace Warfield",
"Zagara",
"Zasz",
"Zeratul",
"Zurvan"
]
planets: [
"Abaddon",
"Adena",
"Aeneas",
"Agria",
"Aiur",
"Alamar",
"Albion",
"Aleun",
"Alpha Draconis",
"Altara",
"Altheon",
"Anselm",
"Antiga Prime",
"Aridas",
"Artesia Prime",
"Artika",
"Ash'Arak",
"Ashrigo",
"Aspar",
"Asteria",
"Astrid III",
"Atrias",
"Atticus Minor",
"Avernus",
"Bel'Shir",
"Bellum IV",
"Beta Saul",
"Bhekar Ro",
"Boone",
"Borea",
"Bountiful",
"Braken",
"Braxis",
"Braxis Alpha",
"Brokas Hur",
"Brontes",
"Brontes IV",
"Bukari V",
"Calus",
"Candore",
"Cantar",
"Castanar",
"Cavir",
"Char",
"Chau Sara",
"Chiron",
"Planet Christmas",
"Cirion",
"Cruxas III",
"Dannuth VII",
"Dark planet",
"Dead Man's Rock",
"Demon's Fair",
"Dylar IV",
"Earth",
"Eldersthine",
"Exgelia IV",
"Feronis",
"Formicia",
"G-2275",
"Gamma Dorian",
"Gantris VI",
"Gantuan VI",
"Garrxax",
"Gelgaris",
"Glacius",
"Gohbus",
"Goldilocks",
"Great Bend",
"Grissom IV",
"Grnaki Prime",
"Gyras",
"Gystt",
"Halcyon",
"Haven",
"Heimdall IV",
"Helioc III",
"Helios",
"Hydrax",
"Icarus IV",
"Ignus",
"J'larre",
"Jarban Minor",
"Jontur II",
"Jotun",
"Ketill IV",
"Korhal",
"Krydon",
"Lakius",
"Lerilak Crest",
"Lorcadia",
"Luria IV",
"LV-555",
"Maltair IV",
"Mar Sara",
"Marek V",
"Marlowe",
"Mehlus IV",
"Meinhoff",
"Melkora",
"Midr IV",
"Miranar",
"Mistaff IV",
"Moria",
"Nelyth",
"Nemaka",
"Nephor II",
"New Folsom",
"New Sydney",
"New Trinidad",
"Nidhogg",
"Nidhogg III",
"Norris VI",
"Old Faithful",
"Onuru Sigma",
"Orna III",
"Paralta",
"Parragos",
"Pegasus",
"Phaeton",
"Pho-Rekh",
"Pike's Peak",
"Port Zion",
"Pridewater",
"Raydin III",
"Raydin IV",
"Redstone III",
"Revan II",
"Revera",
"Reynif II",
"Roxara",
"Saluset",
"Samiku",
"Sammy",
"Scoria",
"Seti",
"Shakuras",
"Shi",
"Shiloh",
"Sigmaris Prime",
"Sirocco",
"Slayn",
"Sonyan",
"Sorona",
"Sutur V",
"Swampus",
"Tal Qirat",
"Talvaria",
"TarKossia",
"Tarsonis",
"Tashai",
"Taurus IV",
"Tepperus",
"Thalon VII",
"Thanix III",
"Thys",
"Timul IV",
"Tiria",
"Torenis Prime",
"Torus",
"Turaxis II",
"Typhon XI",
"Tyrador VIII",
"Tyrador III",
"Tyrador IX",
"Uilel IV",
"Uilila IV",
"Ullalah II",
"Umoja",
"Urona Sigma",
"Van Osten's Moon",
"Vanass",
"Vardona",
"Veridia Prime",
"Vyctor 5",
"Vygoire",
"Warrant VI",
"Wotan II",
"Xil",
"XT39323",
"Ynoth",
"Zanadar Prime",
"Zenn",
"Zeph III",
"Zerus",
"Zhakul",
"Zz'gash"
]

View File

@ -52,7 +52,7 @@ es-MX:
name:
first_name: [José Luis, Juan, Francisco, José, Antonio, Jesús, Miguel Ángel, Pedro, Alejandro, Manuel, Juan Carlos, Roberto, Jorge, Carlos, Fernando, Ricardo, Miguel, Javier, Martín, Rafael, Raúl, Arturo, Daniel, Eduardo, Enrique, Mario, José Antonio, Sergio, Gerardo, Salvador, Marco Antonio, Alfredo, David, Armando, Alberto, Luis, Óscar, Ramón, Guillermo, Rubén, Jaime, Felipe, Julio César, Andrés, Pablo, Ángel, Gabriel, Héctor, Alfonso, José Guadalupe, Agustín, Ignacio, Víctor, Rogelio, Gustavo, Ernesto, Rodolfo, Luis Alberto, Gilberto, Vicente, Juan Antonio, Tomás, Israel, César, Adrián, Ismael, Santiago, Humberto, Gregorio, Joel, Esteban, José Alfredo, Nicolás, Omar, Moisés, Félix, Lorenzo, Samuel, Carlos Alberto, José Angel, Ramiro, Abel, Jorge Luis, Marcos, Mario Alberto, Rodrigo, Edgar, Isidro, José Alberto, Leonardo, Benjamín, Jorge Alberto, Julio, Raymundo, Víctor Hugo, Saúl, Benito, José Juan, Rigoberto, Hugo, Guadalupe, María, Margarita, Verónica, María Elena, Josefina, Leticia, Teresa, Patricia, Rosa, Martha, Rosa María, Alicia, Yolanda, Francisca, Silvia, Elizabeth, Gloria, Ana María, Gabriela, Alejandra, María Luisa, María de Lourdes, Adriana, Araceli, Antonia, Lucía, Carmen, Irma, Claudia, Beatriz, Isabel, Laura, Maribel, Graciela, Virginia, Catalina, Esperanza, Angélica, Maricela, Cecilia, Susana, Cristina, Julia, Concepción, Victoria, Ofelia, Rocío, Carolina, Raquel, Petra, Lorena, Reyna, Sandra, Paula, Guillermina, Sara, Elvira, Manuela, Marisol, Mónica, Erika, Celia, Luz María, Irene, Magdalena, Estela, Ángela, Rosario, Esther, Eva, Norma, Aurora, Socorro, Consuelo, Lidia, Bertha, Sofía, Dolores, Elena, Rosalba, Liliana, Andrea, Adela, Mariana, Fabiola, Karina, Martina, Marcela, Miriam, Mercedes, Marina, Amalia, Olivia, Angelina, Sonia, Agustina, Edith, Lilia, Micaela]
last_name: [Hernández, García, Martínez, López, González, Rodríguez, Pérez, Sánchez, Ramírez, Cruz, Flores, Gómez, Morales, Vázquez, Reyes, Jímenez, Torres, Díaz, Gutiérrez, Mendoza, Ruiz, Aguilar, Ortiz, Castillo, Moreno, Romero, Álvarez, Chávez, Rivera, Juárez, Ramos, Méndez, Domínguez, Herrera, Medina, Vargas, Castro, Guzmán, Velázquez, Muñoz, Rojas, Contreras, Salazar, Luna, de la Cruz, Ortega, Guerrero, Santiago, Estrada, Bautista, Cortés, Soto, Alvarado, Espinoza, Lara, Ávila, Ríos, Cervantes, Silva, Delgado, Vega, Márquez, Sandoval, Fernández, León, Carrillo, Mejía, Solís, Núñez, Rosas, Valdez, Ibarra, Campos, Santos, Camacho, Peña, Maldonado, Navarro, Rosales, Acosta, Miranda, Trejo, Cabrera, Valencia, Nava, Castañeda, Pacheco, Robles, Molina, Rangel, Fuentes, Huerta, Meza, Aguirre, Cárdenas, Orozco, Padilla, Espinosa, Ayala, Salas, Valenzuela, Zúñiga, Ochoa, Salinas, Mora, Tapia, Serrano, Durán, Olvera, Macías, Zamora, Calderón, Arellano, Suárez, Barrera, Zavala, Villegas, Gallegos, Lozano, Galván, Figueroa, Beltrán, Franco, Villanueva, Sosa, Montes, Andrade, Velasco, Arias, Marín, Corona, Garza, Ponce, Esquivel, Pineda, Alonso, Palacios, Antonio, Vásquez, Trujillo, Cortez, Rocha, Rubio, Bernal, Benítez, Escobar, Villa, Galindo, Cuevas, Bravo, Cano, Osorio, Mata, Carmona, Montoya, de Jesús, Enríquez, Cisneros, Rivas, Parra, Reséndiz, Téllez, Zárate, Salgado, de la Rosa, Vera, Tovar, Arroyo, Córdova, Leyva, Quintero, Becerra, Quiroz, Barajas, Ávalos, Peralta, Román, Esparza, Murillo, Guevara, Olivares, Félix, de León, Castellanos, Villarreal, Villalobos, Lugo, Ángeles, Montiel, Segura, Magaña, Saucedo, Gallardo, Mercado, Navarrete, Reyna, Paredes, Dávila, Leal, Guerra, Saldaña, Guillén, Santana, Uribe, Monroy, Piña, Yáñez, Nieto, Islas, Granados, Escobedo, Zapata, Caballero, del Ángel, Solano, Barron, Zepeda, Acevedo, Arriaga, Barrios, Mondragón, Galicia, Godínez, Ojeda, Duarte, Alfaro, Medrano, Rico, Aguilera, Gil, Ventura, Balderas, Arredondo, Coronado, Escamilla, Nájera, Palma, Amador, Blanco, Ocampo, Garduño, Barragán, Gámez, Francisco, Meléndez, Carbajal, Hurtado, Carrasco, Bonilla, Correa, Sierra, Anaya, Carranza, Romo, Valdés, Armenta, Alcántara, Escalante, Arreola, Quezada, Alarcón, Gaytán, Rentería, Vidal, Báez, de los Santos, Toledo, Colín, May, Carrera, Jaramillo, Santillán, Valle, Varela, Arenas, Rendón, Treviño, Venegas, Soriano, Zaragoza, Morán, Áviles, Aranda, Lira, Quintana, Arteaga, Valadez, Cordero, Sotelo, de la Torre, Muñiz, Hidalgo, Cázares, Covarrubias, Zamudio, Ordoñez, Aparicio, Baltazar, Gálvez, Madrigal]
last_name: [Hernández, García, Martínez, López, González, Rodríguez, Pérez, Sánchez, Ramírez, Cruz, Flores, Gómez, Morales, Vázquez, Reyes, Jímenez, Torres, Díaz, Gutiérrez, Mendoza, Ruiz, Aguilar, Ortiz, Castillo, Moreno, Romero, Álvarez, Chávez, Rivera, Juárez, Ramos, Méndez, Domínguez, Herrera, Medina, Vargas, Castro, Guzmán, Velázquez, Muñoz, Rojas, Contreras, Salazar, Luna, de la Cruz, Ortega, Guerrero, Santiago, Estrada, Bautista, Cortés, Soto, Alvarado, Espinoza, Lara, Ávila, Ríos, Cervantes, Silva, Delgado, Vega, Márquez, Sandoval, Fernández, León, Carrillo, Mejía, Solís, Núñez, Rosas, Valdez, Ibarra, Campos, Santos, Camacho, Peña, Maldonado, Navarro, Rosales, Acosta, Miranda, Trejo, Cabrera, Valencia, Nava, Castañeda, Pacheco, Robles, Molina, Rangel, Fuentes, Huerta, Meza, Aguirre, Cárdenas, Orozco, Padilla, Espinosa, Ayala, Salas, Valenzuela, Zúñiga, Ochoa, Salinas, Mora, Tapia, Serrano, Durán, Olvera, Macías, Zamora, Calderón, Arellano, Suárez, Barrera, Zavala, Villegas, Gallegos, Lozano, Galván, Figueroa, Beltrán, Franco, Villanueva, Sosa, Montes, Andrade, Velasco, Arias, Marín, Corona, Garza, Ponce, Esquivel, Pineda, Alonso, Palacios, Antonio, Vásquez, Trujillo, Cortez, Rocha, Rubio, Bernal, Benítez, Escobar, Villa, Galindo, Cuevas, Bravo, Cano, Osorio, Mata, Carmona, Montoya, de Jesús, Enríquez, Cisneros, Rivas, Parra, Reséndiz, Téllez, Zárate, Salgado, de la Rosa, Vera, Tovar, Arroyo, Córdova, Leyva, Quintero, Becerra, Quiroz, Barajas, Ávalos, Peralta, Román, Esparza, Murillo, Guevara, Olivares, Félix, de León, Castellanos, Villarreal, Villalobos, Lugo, Ángeles, Montiel, Segura, Magaña, Saucedo, Gallardo, Mercado, Navarrete, Reyna, Paredes, Dávila, Leal, Guerra, Saldaña, Guillén, Santana, Uribe, Monroy, Piña, Yáñez, Nieto, Islas, Granados, Escobedo, Zapata, Caballero, del Ángel, Solano, Barron, Zepeda, Acevedo, Arriaga, Barrios, Mondragón, Galicia, Godínez, Ojeda, Duarte, Alfaro, Medrano, Rico, Aguilera, Gil, Ventura, Balderas, Arredondo, Coronado, Escamilla, Nájera, Palma, Amador, Blanco, Ocampo, Garduño, Barragán, Gámez, Francisco, Meléndez, Carbajal, Hurtado, Carrasco, Bonilla, Correa, Sierra, Anaya, Carranza, Romo, Valdés, Armenta, Alcántara, Escalante, Arreola, Quezada, Alarcón, Gaytán, Rentería, Vidal, Báez, de los Santos, Toledo, Colín, May, Carrera, Jaramillo, Santillán, Valle, Varela, Arenas, Rendón, Treviño, Venegas, Soriano, Zaragoza, Morán, Áviles, Aranda, Lira, Quintana, Arteaga, Valadez, Cordero, Sotelo, de la Torre, Muñiz, Hidalgo, Cázares, Covarrubias, Zamudio, Ordoñez, Aparicio, Baltazar, Gálvez, Madrigal,Ibañez,De Romaña,Ormeño]
prefix: [Sr., Sra., Srita., Dr., Ing.]
suffix: [Jr., Sr., I, II, III, IV, V]
title:

File diff suppressed because one or more lines are too long

View File

@ -60,7 +60,7 @@ fr-CH:
- "#{first_name} #{last_name} #{last_name}"
phone_number:
formats: ['', '02########', '03########', '04########', '05########', '09########', '+41 1########', '+41 2########', '+41 3########', '+41 4########', '+41 5########', '+41 9########', '01 ## ## ## ##', '02 ## ## ## ##', '03 ## ## ## ##', '04 ## ## ## ##', '05 ## ## ## ##', '09 ## ## ## ##', '+41 1 ## ## ## ##', '+41 2 ## ## ## ##', '+41 3 ## ## ## ##', '+41 4 ## ## ## ##', '+41 5 ## ## ## ##', '+41 9 ## ## ## ##']
formats: ['02########', '03########', '04########', '05########', '09########', '+41 1########', '+41 2########', '+41 3########', '+41 4########', '+41 5########', '+41 9########', '01 ## ## ## ##', '02 ## ## ## ##', '03 ## ## ## ##', '04 ## ## ## ##', '05 ## ## ## ##', '09 ## ## ## ##', '+41 1 ## ## ## ##', '+41 2 ## ## ## ##', '+41 3 ## ## ## ##', '+41 4 ## ## ## ##', '+41 5 ## ## ## ##', '+41 9 ## ## ## ##']
cell_phone:
formats: ['#####.######', '+41.####.######']

View File

@ -7,7 +7,7 @@ fr:
secondary_address: ['Apt. ###', '# étage']
postcode: ['#####']
state: ['Alsace', 'Aquitaine', 'Auvergne', 'Basse-Normandie', 'Bourgogne', 'Bretagne', 'Centre', 'Champagne-Ardenne', 'Corse', 'Franche-Comté', 'Guadeloupe', 'Guyane', 'Haute-Normandie', 'Île-de-France', 'La Réunion', 'Languedoc-Roussillon', 'Limousin', 'Lorraine', 'Martinique', 'Mayotte', 'Midi-Pyrénées', 'Nord-Pas-de-Calais', 'Pays de la Loire', 'Picardie', 'Poitou-Charentes', "Provence-Alpes-Côte d'Azur", 'Rhône-Alpes']
city_name: ["Paris", "Marseille", "Lyon", "Toulouse", "Nice", "Nantes", "Strasbourg", "Montpellier", "Bordeaux", "Lille", "Rennes", "Reims", "Le Havre", "Saint-Étienne", "Toulon", "Grenoble", "Dijon", "Angers", "Saint-Denis", "Villeurbanne", "Le Mans", "Aix-en-Provence", "Brest", "Nîmes", "Limoges", "Clermont-Ferrand", "Tours", "Amiens", "Metz", "Perpignan", "Besançon", "Orléans", "Boulogne-Billancourt", "Mulhouse", "Rouen", "Caen", "Nancy", "Saint-Denis", "Saint-Paul", "Montreuil", "Argenteuil", "Roubaix", "Dunkerque14", "Tourcoing", "Nanterre", "Avignon", "Créteil", "Poitiers", "Fort-de-France", "Courbevoie", "Versailles", "Vitry-sur-Seine", "Colombes", "Pau", "Aulnay-sous-Bois", "Asnières-sur-Seine", "Rueil-Malmaison", "Saint-Pierre", "Antibes", "Saint-Maur-des-Fossés", "Champigny-sur-Marne", "La Rochelle", "Aubervilliers", "Calais", "Cannes", "Le Tampon", "Béziers", "Colmar", "Bourges", "Drancy", "Mérignac", "Saint-Nazaire", "Valence", "Ajaccio", "Issy-les-Moulineaux", "Villeneuve-d'Ascq", "Levallois-Perret", "Noisy-le-Grand", "Quimper", "La Seyne-sur-Mer", "Antony", "Troyes", "Neuilly-sur-Seine", "Sarcelles", "Les Abymes", "Vénissieux", "Clichy", "Lorient", "Pessac", "Ivry-sur-Seine", "Cergy", "Cayenne", "Niort", "Chambéry", "Montauban", "Saint-Quentin", "Villejuif", "Hyères", "Beauvais", "Cholet"]
city_name: ["Paris", "Marseille", "Lyon", "Toulouse", "Nice", "Nantes", "Strasbourg", "Montpellier", "Bordeaux", "Lille", "Rennes", "Reims", "Le Havre", "Saint-Étienne", "Toulon", "Grenoble", "Dijon", "Angers", "Saint-Denis", "Villeurbanne", "Le Mans", "Aix-en-Provence", "Brest", "Nîmes", "Limoges", "Clermont-Ferrand", "Tours", "Amiens", "Metz", "Perpignan", "Besançon", "Orléans", "Boulogne-Billancourt", "Mulhouse", "Rouen", "Caen", "Nancy", "Saint-Denis", "Saint-Paul", "Montreuil", "Argenteuil", "Roubaix", "Dunkerque", "Tourcoing", "Nanterre", "Avignon", "Créteil", "Poitiers", "Fort-de-France", "Courbevoie", "Versailles", "Vitry-sur-Seine", "Colombes", "Pau", "Aulnay-sous-Bois", "Asnières-sur-Seine", "Rueil-Malmaison", "Saint-Pierre", "Antibes", "Saint-Maur-des-Fossés", "Champigny-sur-Marne", "La Rochelle", "Aubervilliers", "Calais", "Cannes", "Le Tampon", "Béziers", "Colmar", "Bourges", "Drancy", "Mérignac", "Saint-Nazaire", "Valence", "Ajaccio", "Issy-les-Moulineaux", "Villeneuve-d'Ascq", "Levallois-Perret", "Noisy-le-Grand", "Quimper", "La Seyne-sur-Mer", "Antony", "Troyes", "Neuilly-sur-Seine", "Sarcelles", "Les Abymes", "Vénissieux", "Clichy", "Lorient", "Pessac", "Ivry-sur-Seine", "Cergy", "Cayenne", "Niort", "Chambéry", "Montauban", "Saint-Quentin", "Villejuif", "Hyères", "Beauvais", "Cholet"]
city:
- "#{city_name}"
street_suffix: ["de l'Abbaye", "Adolphe Mille", "d'Alésia", "d'Argenteuil", "d'Assas", "du Bac", "de Paris", "La Boétie", "Bonaparte", "de la Bûcherie", "de Caumartin", "Charlemagne", "du Chat-qui-Pêche", "de la Chaussée-d'Antin", "du Dahomey", "Dauphine", "Delesseux", "du Faubourg Saint-Honoré", "du Faubourg-Saint-Denis", "de la Ferronnerie", "des Francs-Bourgeois", "des Grands Augustins", "de la Harpe", "du Havre", "de la Huchette", "Joubert", "Laffitte", "Lepic", "des Lombards", "Marcadet", "Molière", "Monsieur-le-Prince", "de Montmorency", "Montorgueil", "Mouffetard", "de Nesle", "Oberkampf", "de l'Odéon", "d'Orsel", "de la Paix", "des Panoramas", "Pastourelle", "Pierre Charron", "de la Pompe", "de Presbourg", "de Provence", "de Richelieu", "de Rivoli", "des Rosiers", "Royale", "d'Abbeville", "Saint-Honoré", "Saint-Bernard", "Saint-Denis", "Saint-Dominique", "Saint-Jacques", "Saint-Séverin", "des Saussaies", "de Seine", "de Solférino", "Du Sommerard", "de Tilsitt", "Vaneau", "de Vaugirard", "de la Victoire", "Zadkine"]
@ -58,6 +58,10 @@ fr:
- "#{Name.last_name} #{suffix}"
- "#{Name.last_name} et #{Name.last_name}"
creature:
animal:
name: ["agneau", "aigle", "albatros", "alligator", "alpaga", "anaconda", "ane", "antilope", "araignée", "autruche", "babouin", "baleine", "belette", "béluga", "biche", "bison", "blaireau", "boa", "boeuf", "bonobo", "bouquetin", "brebis", "buffle", "cachalot", "canard", "capucin", "capybara", "caribou", "carpe", "castor", "cerf", "chacal", "chameau", "chamois", "chat", "chauve-souris", "cheval", "chèvre", "chevreuil", "chien", "chimpanzé", "chinchilla", "chouette", "cigogne", "civette", "coati", "cobaye", "coccinelle", "cochon", "coq", "coyote", "crabe", "crocodile", "cygne", "daim", "dauphin", "dinde", "dindon", "dingo", "drill", "dromadaire", "écureuil", "élan", "éléphant", "émeu", "epaulard", "escargot", "espadon", "faisan", "faon", "faucon", "fennec", "flamant rose", "fouine", "fourmilier", "furet", "gazelle", "gerbille", "gerboise", "gibbon", "girafe", "glouton", "gnou", "goret", "gorille", "grenouille", "grizzly", "grue", "guépard", "hamster", "hérisson", "hermine", "héron", "hibou", "hippocampe", "hippopotame", "hirondelle", "hyène", "ibis", "iguane", "impala", "isard", "isatis", "jaguar", "kangourou", "kiwi", "koala", "lamantin", "lamas", "lapin", "lemming", "lémurien", "léopard", "lézard", "lièvre", "lion", "loir", "loup", "loutre", "lynx", "macaque", "mammouth", "manchot", "mandrill", "mangouste", "marmotte", "marsouin", "mésange", "morse", "mouette", "moufette", "mouflon", "mouton", "mulet", "mulot", "musaraigne", "narval", "nasique", "ocelot", "oie", "okapi", "opossum", "ornithorynque", "orque", "oryx", "otarie", "ouistiti", "ours", "pandas", "pangolin", "panthère", "paon", "paresseux", "pélican", "perroquet", "phacochère", "phoque", "pie", "pingouin", "pipistrelle", "poney", "porc", "porc-épic", "poule", "poulet", "poulpe", "poussin", "puma", "putois", "python", "quetzal", "ragondin", "rat", "raton laveur", "renard", "requin", "requin baleine", "rhésus", "rhinocéros", "roussette", "salamandre", "sanglier", "serpent", "serval", "singe", "souris", "sphynx", "suricate", "tamanoir", "tamarin", "tapir", "tatou", "taupe", "taureau", "tigre", "tortue", "toucan", "unau", "urubu", "vache", "varan", "vautour", "veau", "vipère", "vison", "wallaby", "wapiti", "wombat", "yack", "zèbre", "zébu", "zibeline", "zorille"]
demographic:
sex: ["Homme", "Femme"]

171
src/main/resources/hu.yml Normal file

File diff suppressed because one or more lines are too long

View File

@ -63,7 +63,7 @@ it:
phone_number:
formats: ['+## ### ## ## ####', '+## ## #######', '+## ## ########', '+## ### #######', '+## ### ########', '+## #### #######', '+## #### ########', '0## ### ####', '+39 0## ### ###', '3## ### ###', '+39 3## ### ###']
subscription:
plans: ["Prova gratuita", "Basico", "Starter", "Essential", "Studente", Bronze", "Standard", "Silver", "Gold", "Platinum", "Profesional", "Business", "Diamond", "Premium"]
plans: ["Prova gratuita", "Basico", "Starter", "Essential", "Studente", "Bronze", "Standard", "Silver", "Gold", "Platinum", "Profesional", "Business", "Diamond", "Premium"]
statuses: ["Attivo", "Inattivo", "Bloccato", "In sospeso"]
payment_methods: ["Carta di credito", "Carta di debito", "Paypal", "Contanti", "Bonifico", "Bitcoins", "Assegno", "Apple Pay", "Google Pay", "WeChat Pay", "Alipay", "Visa Checkout"]
subscription_terms: ["Quotidiano", "Settimanale", "Mensile", "Annuale", "Biennale", "Triennale", "Quinquennale", "Abbonamento a vita"]

View File

@ -694,4 +694,7 @@ pt-BR:
TO: ["MV[L-Z]-####", "MW?-####", "MX[A-G]-####", "OL[H-N]-####", "OY[A-C]-####", "QK[A-M]-####"]
gender:
types: ["Feminino", "Masculino", "Não Binário", "Agênero", "Gênero Fluido", "Gênero queer", "Bigênero", "Poligênero"]
binary_types: ["Feminino", "Masculino"]
binary_types: ["Feminino", "Masculino"]
creature:
animal:
name: ["jacaré", "crocodilo", "alpaca", "formiga", "antílope", "macaco", "tatu", "burro", "babuíno", "texugo", "morcego", "urso", "castor", "abelha", "besouro", "búfalo", "borboleta", "camelo", "búfalo-asiático", "caribu", "gato", "gado", "guepardo", "chimpanzé", "chinchila", "cigarra", "amêijoa", "barata", "bacalhau", "coiote", "caranguejo", "grilo", "corvo", "corvo-comum", "cervo", "dinossauro", "cachorro", "golfinho", "toninha", "pato", "águia", "enguia", "elefante", "alce", "furão", "peixe", "mosca", "raposa", "sapo", "rã" , "gerbilo", "girafa", "mosquito", "gnu", "gnu-cauda-preta", "cabra", "peixe-dourado", "ganso", "gorila", "gafanhoto", "porquinho da índia", "hamster", "lebre", "ouriço", "arenque", "hipopótamo", "vespa", "cavalo", "cão de caça", "hiena", "impala", "chacal", "água-viva", "canguru", "wallaby", "coala", "leopardo", "leão", "lagarto", "lhama", "gafanhoto", "piolho", "arara", "pato selvagem", "mamute", "peixe-boi", "marta", "vison", "vairão", "toupeira", "macaco", "alce", "mosquito", "rato", "ratazana", "mula", "rato almiscarado", "lontra", "boi", "ostra", "panda", "porco", "ornitorrinco", "porco-espinho", "cão da pradaria", "pug", "coelho", "guaxinim", "rena", "rinoceronte", "salmão", "sardinha", "escorpião", "foca", "leão-marinho", "serval", "tubarão", "ovelha", "gambá", "caracol", "cobra", "aranha", "esquilo", "cisne", "cupim", "tigre", "truta", "tartaruga", "jabuti", "morsa", "vespa", "doninha", "baleia", "lobo", "vombate", "marmota", "minhoca", "iaque", "vespa", "zebra"]

View File

@ -2,8 +2,6 @@ pt:
faker:
address:
city_name: [Abrantes,Agualva-Cacém,Águeda,Albergaria-a-Velha,Albufeira,Alcácer do Sal,Alcobaça,Alfena,Almada,Almeirim,Alverca do Ribatejo,Amadora,Amarante,Amora,Anadia,Angra do Heroísmo,Aveiro,Barcelos,Barreiro,Beja,Borba,Braga,Bragança,Caldas da Rainha,Câmara de Lobos,Caniço,Cantanhede,Cartaxo,Castelo Branco,Chaves,Coimbra,Costa da Caparica,Covilhã,Elvas,Entroncamento,Ermesinde,Esmoriz,Espinho,Esposende,Estarreja,Estremoz,Évora,Fafe,Faro,Fátima,Felgueiras,Figueira da Foz,Fiães,Freamunde,Funchal,Fundão,Gafanha da Nazaré,Gandra,Gondomar,Gouveia,Guarda,Guimarães,Horta,Ílhavo,Lagoa,Lagoa,Lagos,Lamego,Leiria,Lisboa,Lixa,Loulé,Loures,Lourosa,Macedo de Cavaleiros,Machico,Maia,Mangualde,Marco de Canaveses,Marinha Grande,Matosinhos,Mealhada,Mêda,Miranda do Douro / Miranda de l Douro,Mirandela,Montemor-o-Novo,Montijo,Moura,Odivelas,Olhão da Restauração,Oliveira de Azeméis,Oliveira do Bairro,Oliveira do Hospital,Ourém,Ovar,Paços de Ferreira,Paredes,Penafiel,Peniche,Peso da Régua,Pinhel,Pombal,Ponta Delgada,Ponte de Sor,Portalegre,Portimão,Porto,Póvoa de Santa Iria,Póvoa de Varzim,Praia da Vitória,Quarteira,Queluz,Rebordosa,Reguengos de Monsaraz,Ribeira Grande,Rio Maior,Rio Tinto,Sabugal,Sacavém,Samora Correia,Santa Comba Dão,Santa Cruz,Santa Maria da Feira,Santana,Santarém,Santiago do Cacém,Santo Tirso,São João da Madeira,São Mamede de Infesta,São Pedro do Sul,Lordelo,Seia,Seixal,Senhora da Hora,Serpa,Setúbal,Silves,Sines,Tarouca,Tavira,Tomar,Tondela,Torres Novas,Torres Vedras,Trancoso,Trofa,Valbom,Vale de Cambra,Valença,Valongo,Valpaços,Vendas Novas,Viana do Castelo,Vila Baleira,Vila do Conde,Vila Franca de Xira,Vila Nova de Famalicão,Vila Nova de Foz Côa,Vila Nova de Gaia,Vila Nova de Santo André,Vila Real,Vila Real de Santo António,Viseu,Vizela]
city_prefix: ""
city_suffix: ""
city:
- "#{city_name}"
country: [ "Afeganistão", "Albânia", "Algéria", "Samoa", "Andorra", "Angola", "Anguilla", "Antigua and Barbada", "Argentina", "Armênia", "Aruba", "Austrália",

View File

@ -74,3 +74,26 @@ ru:
- "#{prefix} #{Address.city_name}#{suffix}"
- "#{prefix} #{Address.city_name}#{suffix}#{suffix}"
- "#{prefix} #{Address.city_name}#{suffix}#{suffix}#{suffix}"
photography:
term: ["диафрагма", "выдержка", "фокусное расстояние", "плёнка", "вспышка", "зеркало", "отражение", "видоискатель", "горячий башмак", "затвор", "объектив", "35мм", "зерно", "боке", "фокус", "аберрации", "Ч/Б", "ISO", "ГРИПП", "зеркалка", "цифрозеркалка", "чёрный ключ", "белый ключ", "БДД", "чувствительность", "ISO"]
brand: ["Agfa", "Fujifilm", "Petnax", "Canon", "Casio", "Nikon", "Hama", "Olympus", "Sony", "Konica", "Minolta", "Konica Minolta", "Lumix", "Praktika", "Polaroid", "Panasonic", "Samsung", "Ricoh", "Tamron", "Sigma", "Арсенал", "БелОМО", "КМЗ", "Leica", "ЛОМО", "ФЭД", "Kodak", "Hasselblad", "llford", "Exacta", "Carl Zeiss", "Tokina", "Kenko", "Goerz", "Yashica", "Soligor GmbH", "ВОМЗ", "ЛЗОС"]
camera: ["ФЭД 1","ФЭД 2","ФЭД 3","ФЭД 4","ФЭД 5","КМЗ Москва-1","КМЗ Москва-2","КМЗ Москва-2A","КМЗ Москва-3","КМЗ Москва-4","КМЗ Москва-5", "КМЗ Искра", "КМЗ Искра-2", "Зоркий", "Зоркий-2", "Зоркий-3", "Зоркий-4", "Зоркий-10","Зоркий-11","Зоркий-12","Зоркий-15","Зоркий-16", "МИР",
"Зенит-200A", "Зенит-200АФ", "Зенит-200АФ-У", "Зенит-200-2AФ", "Зенит-200-Zoom", "Зенит-компакт", "Зенит-104", "Зенит-501Р", "Зенит-502Р", "Зенит-503Х", "Зенит-504Г", "Зенит-510", "Зенит-520", "Зенит-610", "Зенит-620", "Зенит-630", "Зенит-АПС", "Зенит-96", "Зенит-E", "Зенит-E2", "Зенит-У", "Зенит-В", "Зенит-ЕМ", "Зенит-ЕМ2", "Зенит-ВМ", "Зенит-T1", "Зенит-ЕТ", "Зенит-ВЕ", "Зенит-10", "Зенит-11", "Зенит-50", "Зенит-М", "Зенит-2", "Зенит-ДМ3","Зенит-ДМ5", "Зенит-З1",
"Момент-20","Момент-20У", "Зенит-70", "Фотон", "Фотон-2", "Фотон-3", "Фотон-M", "Фотон-E", "Фотон-ПАК", "Фотон-автомат", "Фотон-УФМ (Москва-УФМ)", "Фотон-5", "Фотон-23", "Фотон-супер", "Панорама",
"Горизонт-202-1", "Горизонт-202-С", "Горизонт-компакт", "Горизонт-S3", "Горизонт-203", "ПанАрт-С3", "Горизонт-203-У500", "Горизонт-С3-спорт", "Горизонт-перфект", "Горизонт-205",
"Старт", "Старт-2", "Старт-3", "Зенит-7", "Зенит-D", "Зенит-8", "Зенит-9", "Зенит-20", "Зенит-21", "Зенит-MK", "Зенит-22", "Зенит-23", "Зенит-MTL", "Зенит-7000",
"Фотоснайпер", "Фотоснайпер ФС-3", "Фотоснайпер ФС-4", "Фотоснайпер ФС-4M", "Фотоснайпер ФС-5", "Фотоснайпер ФС-12", "Фотоснайпер ФС-14", "Фотоснайпер ФС-122",
"Смена","Смена 2","Смена 3","Смена 4","Смена 6","Смена 8","Смена 11","Смена 12","Смена 7","Смена 9",
"Киев 2","Киев 3","Киев 4","Киев 5","Киев 6","Киев 10","Киев 15","Киев 17","Киев 20","Киев 88","Киев 90","Салют S","Мираж 19M",
"ЛОМО-130A","ЛОМО-135M","ЛОМО-Компакт", "Алмаз 104", "Алмаз 101",
"Canon EOS 1000D", "Canon EOS 1100D", "Canon EOS 1300D", "Canon EOS 2000D", "Canon EOS 4000D", "Canon EOS 300D", "Canon EOS 350D", "Canon EOS 400D", "Canon EOS 450D", "Canon EOS 500D", "Canon EOS 550D", "Canon EOS 600D", "Canon EOS 650D", "Canon EOS 700D", "Canon EOS 750D", "Canon EOS 760D", "Canon EOS 800D", "Canon EOS 10D", "Canon EOS 20D", "Canon EOS 30D", "Canon EOS 40D", "Canon EOS 50D", "Canon EOS 60D", "Canon EOS 70D", "Canon EOS 77D", "Canon EOS 80D", "Canon EOS 90D", "Canon EOS-1D", "Canon EOS-1D Mark II", "Canon EOS-1D Mark III", "Canon EOS-1D Mark IV", "Canon EOS-1Ds", "Canon EOS-1D X", "Canon EOS-1Ds", "Canon EOS-1Ds Mark II", "Canon EOS-1Ds Mark III", "Canon EOS 5D", "Canon EOS 5D Mark II", "Canon EOS 5D Mark III", "Canon EOS 5D Mark IV", "Canon EOS 5DS", "Canon EOS 6D", "Canon EOS 7D", "Canon EOS 7D Mark II", "Canon EOS M", "Canon EOS M2", "Canon EOS M3", "Canon EOS M5", "Canon EOS M6", "Canon EOS M50", "Canon EOS M100", "Canon PowerShot", "Canon PowerShot G", "Canon IXUS", "Canon 7", "Canon II", "Canon P", "Canon VT", "Canonet", "Canonet G-III QL17", "Canon EOS R", "Canon EOS RP", "Canon EOS C200", "Canon EOS C300", "Canon EOS C500", "Canon EOS C100", "Canon EOS C300 Mark II", "Canon A-1", "Canon AE-1", "Canon AE-1 Program", "Canon AL-1", "Canon AT-1", "Canon AV-1", "Canon F-1", "Canon New F-1", "Canon FTb", "Canon TLb", "Canon TX", "Canon T50", "Canon T60", "Canon T70", "Canon T80", "Canon T90", "Canon FP", "Canon FT QL", "Canon FX", "Canon Pellix", "Canon Canonflex", "Canon ELPH 490Z",
"Nikon D1", "Nikon D1H", "Nikon D1X", "Nikon D2H", "Nikon D2Hs", "Nikon D2X", "Nikon D2Xs", "Nikon D3", "Nikon D3S", "Nikon D3X", "Nikon D4", "Nikon D4S", "Nikon D5", "Nikon D40", "Nikon D40x", "Nikon D50", "Nikon D60", "Nikon D70", "Nikon D70s", "Nikon D80", "Nikon D90", "Nikon D100", "Nikon D200", "Nikon D300", "Nikon D300S", "Nikon D500", "Nikon D600", "Nikon D610", "Nikon D700", "Nikon D750", "Nikon D800", "Nikon D800E", "Nikon D810", "Nikon D810A", "Nikon D850", "Nikon D3000", "Nikon D3100", "Nikon D3200", "Nikon D3300", "Nikon D3400", "Nikon D3500", "Nikon D5000", "Nikon D5100", "Nikon D5200", "Nikon D5300", "Nikon D5500", "Nikon D5600", "Nikon D7000", "Nikon D7100", "Nikon D7200", "Nikon D7500", "Nikon E2", "Nikon E2N", "Nikon E2NS", "Nikon E2S", "Nikon E3", "Nikon E3s", "Nikon F3AF", "Nikon F4", "Nikonos RS", "Nikon F5", "Nikon F6", "Nikon F-501", "Nikon F-801", "Nikon F-801S", "Nikon F90", "Nikon F90X", "Nikon F80", "Nikon F100", "Nikon F-601", "Nikon F70", "Nikon F75", "Nikon F-401", "Nikon F-401S", "Nikon F-401X", "Nikon F50", "Nikon F60", "Nikon F65", "Nikon F55", "Nikon I","Nikon M","Nikon S","Nikon S2","Nikon SP","Nikon S3","Nikon S4","Nikon S3M","Nikon S3","Nikon SP",
"Leica S", "Leica S-E", "Leica S2","Leica II",
"Pentax 645D", "Pentax 645Z","Pentax *ist D","Pentax *ist DL","Pentax *ist DL2","Pentax *ist DS","Pentax *ist DS2", "Pentax K-1","Pentax K-3","Pentax K-3 II","Pentax K-5","Pentax K-5 II","Pentax K-30","Pentax K-50","Pentax K-70", "Pentax K-r","Pentax K-S1","Pentax K-S2","Pentax K-x","Pentax K-7","Pentax K10D","Pentax K20D","Pentax K100D","Pentax K100D Super", "Pentax K110D","Pentax K200D","Pentax K2000","Pentax KP","Pentax MZ-D",
"Olympus E-1", "Olympus E-3", "Olympus E-5", "Olympus E-10", "Olympus E-20", "Olympus E-30", "Olympus E-300", "Olympus E-330", "Olympus E-400", "Olympus E-410", "Olympus E-420", "Olympus E-450", "Olympus E-500", "Olympus E-510", "Olympus E-520", "Olympus E-620",
"Fujix DS-560", "Fujix DS-565", "FinePix IS Pro", "FinePix S1 Pro", "FinePix S2 Pro", "FinePix S3 Pro", "FinePix S3 Pro UVIR", "FinePix S5 Pro",
"Sony Alpha 100", "Sony Alpha 200", "Sony Alpha 230", "Sony Alpha 290", "Sony Alpha 300", "Sony Alpha 330", "Sony Alpha 350", "Sony α390", "Sony Alpha 500", "Sony Alpha 550", "Sony Alpha 580", "Sony Alpha 700", "Sony Alpha 850", "Sony Alpha 900", "Sony DSLR-A100", "Sony DSLR-A100/B", "Sony DSLR-A100/S", "Sony DSLR-A200", "Sony DSLR-A230", "Sony DSLR-A290", "Sony DSLR-A300", "Sony DSLR-A300/N", "Sony DSLR-A330", "Sony DSLR-A330/T", "Sony DSLR-A350", "Sony DSLR-A350/N", "Sony DSLR-A380", "Sony DSLR-A390", "Sony DSLR-A450", "Sony DSLR-A500", "Sony DSLR-A550", "Sony DSLR-A560", "Sony DSLR-A580", "Sony DSLR-A700", "Sony DSLR-A850", "Sony DSLR-A900"]
lens: ["500мм/8", "17мм/2.0", "35мм/1.8", "50мм/1.2", "50мм/1.4", "50мм/1.8", "17-85мм/4.0-8.0", "85мм/1.2", "40мм/2.8", "70300мм/4.55.6", "300мм/2.8", "35-350мм/3.5-5.6", "75-300мм/4-5.6", "24мм/1.4", "1740мм/4", "24105мм/4", "70200мм/2.8", "70200мм/4", "200-400мм/4", "85мм/1.8", "135мм/4", "600мм/4", "800мм/5.6", "1855мм/3.55.6", "55250мм/45.6", "10-24мм/3.5-4.5", "12-24мм/4", "16-85мм/3.5-5.6", "17-55мм/2.8", "18-55мм/3.5-5.6", "18-70мм/3.5-4.5", "18-105мм/3.5-5.6", "18-140мм/3.5-5.6", "18-200мм/3.5-5.6", "18-300мм/3.5-5.6", "18-300мм/3.5-6.3", "55-200мм/4-5.6", "рыбий глаз", "теле", "широкоугольный"]
genre: ["Абстракция", "Портрет", "Пейзаж", "Техника", "Транспорт", "Авиация", "Поезда", "Корабли", "Автомобили", "Велосипеды", "Армейское", "ВМФ", "Флора", "Фауна", "Спорт", "Улица", "Город", "Деревня", "за городом", "Архитектура", "Интерьер", "Пища", "Свадьба", "Из готового", "Папарацци", "Общественное", "Мода", "Красота", "Ню", "Наука", "Космос", "Воздушное", "Промышленное", "Искусство", "Под водой", "Ночь", "чёрный ключ", "белый ключ", "ЛОМО", "Панорама", "Макро", "Микро", "Нано"]
imagetag: ["Ч/Б", "стена", "небо", "облака", "трава", "дерево", "улица", "город", "техника", "самобеги", "вагоны", "повозки", "самолёты", "люди", "чай", "кофе", "ресторан", "лес", "луг", "гора", "вода", "река", "солнечно", "облачно", "дождливо", "дождь", "волна", "капля", "девушка", "кирпич", "океан", "море", "речушка", "весна", "пружина", "фестиваль", "празднование", "представление", "танцы", "вселенная", "звёзды", "галактика", "МИР", "МКС", "ракета", "реактивный самолёт", "боец", "истребитель", "певец", "действие", "показ", "театр", "представление"]

File diff suppressed because one or more lines are too long

View File

@ -108,6 +108,12 @@ public class AddressTest extends AbstractFakerTest {
assertThat(faker.address().zipCodeByState(faker.address().stateAbbr()), matchesRegularExpression("[0-9]{5}"));
}
@Test
public void testHungarianZipCodeByState() {
faker = new Faker(new Locale("hu"));
assertThat(faker.address().zipCodeByState(faker.address().stateAbbr()), matchesRegularExpression("[0-9]{4}"));
}
@Test
public void testCountyByZipCode() {
faker = new Faker(new Locale("en-US"));

View File

@ -0,0 +1,15 @@
package com.github.javafaker;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
public class AquaTeenHungerForceTest extends AbstractFakerTest {
@Test
public void character() {
assertThat(faker.aquaTeenHungerForce().character(), matchesRegularExpression("[A-Za-z .]+"));
}
}

View File

@ -1,17 +1,25 @@
package com.github.javafaker;
import com.github.javafaker.repeating.Repeat;
import org.junit.Test;
import static com.github.javafaker.matchers.IsStringWithContents.isStringWithContents;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
public class AviationTest extends AbstractFakerTest {
@Test
@Repeat(times=3)
public void testAviation() {
String airport = faker.aviation().airport();
assertThat(airport, matchesRegularExpression("\\w{4}"));
public void airport() {
assertThat(faker.aviation().airport(), matchesRegularExpression("\\w{4}"));
}
}
@Test
public void aircraft() {
assertThat(faker.aviation().aircraft(), isStringWithContents());
}
@Test
public void metar() {
assertThat(faker.aviation().METAR(), isStringWithContents());
}
}

View File

@ -0,0 +1,28 @@
package com.github.javafaker;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
public class BarcodeTest extends AbstractFakerTest {
@Test
public void type() {
assertThat(faker.barcode().type(),
matchesRegularExpression("(Code(128|39|93))|(E|J)AN(-\\d{1,2})*|Codabar|UCC|UPC(-(A|E))*|IS(B|S)N|ITF|" +
"Ames\\sCode|NW-7|Monarch|Code\\s2\\sof\\s7|Rationalized|ANSI\\/AIM BC3-1995|USD-4|" +
"GS1 Databar|MSI Plessey"));
}
@Test
public void data(){
assertThat(faker.barcode().data(), matchesRegularExpression("\\d+"));
}
@Test
public void typeAndData(){
assertThat(faker.barcode().typeAndData(), matchesRegularExpression("(\\w|\\W)+\\s\\d+$"));
}
}

View File

@ -0,0 +1,74 @@
package com.github.javafaker;
import com.github.javafaker.AbstractFakerTest;
import com.github.javafaker.Faker;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
public class BasketballTest extends AbstractFakerTest {
@Test
public void testPositions(){
Faker faker=new Faker();
assertThat(faker.basketball().positions(),matchesRegularExpression("[\\p{L}'()\\., 0-9-]+")); }
@Test
public void testTeams(){
Faker faker=new Faker();
assertThat(faker.basketball().teams(),matchesRegularExpression("[\\p{L}'()\\., 0-9-]+")); }
@Test
public void testCoaches(){
Faker faker=new Faker();
assertThat(faker.basketball().coaches(),matchesRegularExpression("[\\p{L}'()\\., 0-9-]+")); }
@Test
public void testPlayers(){
Faker faker=new Faker();
assertThat(faker.basketball().players(),matchesRegularExpression("[\\p{L}'()\\., 0-9-]+")); }
@Test
public void testPositionsWith10000Times(){
Faker faker=new Faker();
boolean isExist=false;
for(int i=0;i<10000;i++){
String generateString=faker.basketball().positions();
if(generateString.equals("Point Guard")){isExist=true;}
}
assertTrue(isExist);
}
@Test
public void testTeamsWith10000Times(){
Faker faker=new Faker();
boolean isExist=false;
for(int i=0;i<10000;i++){
String generateString=faker.basketball().teams();
if(generateString.equals("Atlanta Hawks")){isExist=true;}
}
assertTrue(isExist);
}
@Test
public void testCoachesWith10000Times(){
Faker faker=new Faker();
boolean isExist=false;
for(int i=0;i<10000;i++){
String generateString=faker.basketball().coaches();
if(generateString.equals("Kenny Atkinson")){isExist=true;}
}
assertTrue(isExist);
}
@Test
public void testPlayersWith10000Times(){
Faker faker=new Faker();
boolean isExist=false;
for(int i=0;i<10000;i++){
String generateString=faker.basketball().players();
if(generateString.equals("Joel Embiid")){isExist=true;}
}
assertTrue(isExist); }
}

View File

@ -0,0 +1,62 @@
package com.github.javafaker;
import com.github.javafaker.AbstractFakerTest;
import com.github.javafaker.Faker;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.*;
public class BojackHorsemanTest extends AbstractFakerTest {
@Test
public void testCharacters1(){
Faker faker=new Faker();
assertThat(faker.bojackHorseman().characters(),matchesRegularExpression("[\\p{L}'()\\., 0-9-]+")); }
@Test
public void testQuotes1(){
Faker faker=new Faker();
assertFalse(faker.bojackHorseman().quotes().isEmpty()); }
@Test
public void testTongueTwisters1(){
Faker faker=new Faker();
assertFalse(faker.bojackHorseman().tongueTwisters().isEmpty());}
@Test
public void testCharactersWith10000Times(){
Faker faker=new Faker();
boolean isExist=false;
for(int i=0;i<10000;i++){
String generateString=faker.bojackHorseman().characters();
if(generateString.equals("Joseph Sugarman")){isExist=true;}
}
assertTrue(isExist);
}
@Test
public void testQuotesWith10000Times(){
Faker faker=new Faker();
boolean isExist=false;
for(int i=0;i<10000;i++){
String generateString=faker.bojackHorseman().quotes();
if(generateString.equals("It gets easier. But you have to do it every day, that's the hard part. But it does get easier"))
{isExist=true;}
}
assertTrue(isExist);
}
@Test
public void testTongueTwistersWith10000Times(){
Faker faker=new Faker();
boolean isExist=false;
for(int i=0;i<10000;i++){
String generateString=faker.bojackHorseman().tongueTwisters();
if(generateString.equals("Courtly roles like the formerly portly consort are Courtney Portnoy's forté"))
{isExist=true;}
}
assertTrue(isExist);
}
}

View File

@ -0,0 +1,24 @@
package com.github.javafaker;
import org.junit.Test;
import static com.github.javafaker.matchers.IsStringWithContents.isStringWithContents;
import static org.junit.Assert.assertThat;
public class BusinessTest extends AbstractFakerTest {
@Test
public void creditCardNumber() {
assertThat(faker.business().creditCardNumber(), isStringWithContents());
}
@Test
public void creditCardType() {
assertThat(faker.business().creditCardType(), isStringWithContents());
}
@Test
public void creditCardExpiry() {
assertThat(faker.business().creditCardExpiry(), isStringWithContents());
}
}

View File

@ -0,0 +1,14 @@
package com.github.javafaker;
import static org.junit.Assert.assertThat;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import org.junit.Test;
public class CoinTest extends AbstractFakerTest {
@Test
public void coinFlip() {
assertThat(faker.coin().flip(), matchesRegularExpression("\\w+"));
}
}

View File

@ -34,12 +34,12 @@ public class CountryTest extends AbstractFakerTest {
@Test
public void testCurrency() {
assertThat(faker.country().currency(), matchesRegularExpression("([\\w-]+ ?)+"));
assertThat(faker.country().currency(), matchesRegularExpression("([A-Za-zÀ-ÿ'()-]+ ?)+"));
}
@Test
public void testCurrencyCode() {
assertThat(faker.country().currencyCode(), matchesRegularExpression("([\\w-]+ ?)+"));
assertThat(faker.country().currencyCode(), matchesRegularExpression("([\\w-’í]+ ?)+"));
}
@Test

View File

@ -4,14 +4,12 @@
package com.github.javafaker;
import org.junit.Test;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.concurrent.TimeUnit;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.*;
/**
* @author pmiklos
@ -80,14 +78,25 @@ public class DateAndTimeTest extends AbstractFakerTest {
assertThat("before lower bound", date.getTime(), greaterThanOrEqualTo(now.getTime()));
}
}
@Test
public void testBetweenThenLargerThanNow(){
try{
Date now = new Date();
Date then = new Date(now.getTime() + 1000);
Date date =faker.date().between(then,now);
fail("Should be exception");}catch (IllegalArgumentException e){
assertEquals("Invalid date range, the upper bound date is before the lower bound.", e.getMessage());
}
}
@Test
public void testBirthday() {
int currentYear = Calendar.getInstance().get(Calendar.YEAR);
long from = new GregorianCalendar(currentYear - 65, 0, 1).getTime().getTime();
long to = new GregorianCalendar(currentYear - 18, 11, 31).getTime().getTime();
int currentMonth = Calendar.getInstance().get(Calendar.MONTH);
int currentDay = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);
long from = new GregorianCalendar(currentYear - 65, currentMonth, currentDay).getTime().getTime();
long to = new GregorianCalendar(currentYear - 18, currentMonth, currentDay).getTime().getTime();
for (int i = 0; i < 1000; i++) {
for (int i = 0; i < 5000; i++) {
Date birthday = faker.date().birthday();
assertThat("birthday is after upper bound", birthday.getTime(), lessThan(to));
assertThat("birthday is before lower bound", birthday.getTime(), greaterThanOrEqualTo(from));
@ -97,16 +106,18 @@ public class DateAndTimeTest extends AbstractFakerTest {
@Test
public void testBirthdayWithAges() {
int currentYear = Calendar.getInstance().get(Calendar.YEAR);
int currentMonth = Calendar.getInstance().get(Calendar.MONTH);
int currentDay = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);
for (int i = 0; i < 1000; i++) {
for (int i = 0; i < 5000; i++) {
int minAge = faker.number().numberBetween(1, 99);
int maxAge = faker.number().numberBetween(minAge, 100);
long from = new GregorianCalendar(currentYear - maxAge, 0, 1).getTime().getTime();
long to = new GregorianCalendar(currentYear - minAge, 11, 31).getTime().getTime();
long from = new GregorianCalendar(currentYear - maxAge, currentMonth, currentDay).getTime().getTime();
long to = new GregorianCalendar(currentYear - minAge, currentMonth, currentDay).getTime().getTime();
Date birthday = faker.date().birthday(minAge, maxAge);
assertThat("birthday is after upper bound", birthday.getTime(), lessThan(to));
assertThat("birthday is after upper bound", birthday.getTime(), lessThanOrEqualTo(to));
assertThat("birthday is before lower bound", birthday.getTime(), greaterThanOrEqualTo(from));
}
}

View File

@ -0,0 +1,109 @@
package com.github.javafaker;
import com.github.javafaker.repeating.Repeat;
import org.junit.Test;
import static com.github.javafaker.matchers.IsStringWithContents.isStringWithContents;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.*;
public class DiseaseTest extends AbstractFakerTest {
@Test
public void testInternalDisease() {
Faker faker = new Faker();
assertThat(faker.disease().internalDisease(), matchesRegularExpression("[\\p{L}'()\\., 0-9-]+"));
}
@Test
public void testNeurology() {
Faker faker = new Faker();
assertThat(faker.disease().neurology(), matchesRegularExpression("[\\p{L}'()\\., 0-9-]+"));
}
@Test
public void testSurgery() {
Faker faker = new Faker();
assertThat(faker.disease().surgery(), matchesRegularExpression("[\\p{L}'()\\., 0-9-]+"));
}
@Test
public void testPaediatrics() {
Faker faker = new Faker();
assertThat(faker.disease().paediatrics(), matchesRegularExpression("[\\p{L}'()\\., 0-9-]+"));
}
@Test
public void testGynecologyAndObstetrics() {
Faker faker = new Faker();
assertThat(faker.disease().gynecologyAndObstetrics(), matchesRegularExpression("[\\p{L}'()\\., 0-9-]+"));
}
@Test
public void testOphthalmologyAndOtorhinolaryngology() {
Faker faker = new Faker();
assertThat(faker.disease().ophthalmologyAndOtorhinolaryngology(), matchesRegularExpression("[\\p{L}'()\\., 0-9-]+"));
}
@Test
public void testDermatolory() {
Faker faker = new Faker();
assertThat(faker.disease().dermatolory(), matchesRegularExpression("[\\p{L}'()\\., 0-9-]+"));
}
@Test
public void testInternalDiseaseWith10000Times() {
Faker faker = new Faker();
boolean isExist = false;
for (int i = 0; i < 10000; i++) {
String generateString = faker.disease().internalDisease();
if (generateString.equals("anaphylaxis")) {
isExist = true;
}
}
assertTrue(isExist);
}
@Test
@Repeat(times = 10000)
public void testNeurologyWith10000Times() {
Faker faker = new Faker();
assertThat(faker.disease().neurology(), isStringWithContents());
}
@Test
@Repeat(times = 10000)
public void testSurgeryWith10000Times() {
Faker faker = new Faker();
assertThat(faker.disease().surgery(), isStringWithContents());
}
@Test
@Repeat(times = 10000)
public void testPaediatricsWith10000Times() {
Faker faker = new Faker();
assertThat(faker.disease().paediatrics(), isStringWithContents());
}
@Test
@Repeat(times = 10000)
public void testGynecologyAndObstetricsWith10000Times() {
Faker faker = new Faker();
assertThat(faker.disease().gynecologyAndObstetrics(), isStringWithContents());
}
@Test
@Repeat(times = 10000)
public void testOphthalmologyAndOtorhinolaryngologyWith10000Times() {
Faker faker = new Faker();
assertThat(faker.disease().ophthalmologyAndOtorhinolaryngology(), isStringWithContents());
}
@Test
@Repeat(times = 10000)
public void testDermatoloryWith10000Times() {
Faker faker = new Faker();
assertThat(faker.disease().dermatolory(), isStringWithContents());
}
}

View File

@ -0,0 +1,52 @@
package com.github.javafaker;
import com.github.javafaker.repeating.Repeat;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
public class DuneTest extends AbstractFakerTest {
@Test
public void character() {
assertThat(faker.dune().character(), matchesRegularExpression("[A-Za-z '\\-\"]+"));
}
@Test
public void title() {
assertThat(faker.dune().title(), matchesRegularExpression("[A-Za-z ]+"));
}
@Test
public void planet() {
assertThat(faker.dune().planet(), matchesRegularExpression("[A-Za-z ]+"));
}
@Test
public void quote() {
assertThat(faker.dune().quote(), matchesRegularExpression("\\P{Cc}+"));
}
@Test
@Repeat(times = 10000)
public void randomQuote() {
assertThat(
faker.dune().quote(faker.options().option(Dune.Quote.class)),
matchesRegularExpression("\\P{Cc}+"));
}
@Test
public void saying() {
assertThat(faker.dune().saying(), matchesRegularExpression("\\P{Cc}+"));
}
@Test
@Repeat(times = 10000)
public void randomSaying() {
assertThat(
faker.dune().saying(faker.options().option(Dune.Saying.class)),
matchesRegularExpression("\\P{Cc}+"));
}
}

View File

@ -44,4 +44,9 @@ public class ElderScrollsTest extends AbstractFakerTest {
public void testRegion() {
assertThat(faker.elderScrolls().region(), not(isEmptyOrNullString()));
}
@Test
public void testQuote() {
assertThat(faker.elderScrolls().quote(), not(isEmptyOrNullString()));
}
}

View File

@ -0,0 +1,27 @@
package com.github.javafaker;
import org.junit.Test;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat;
public class EnglandFootBallTest extends AbstractFakerTest{
@Test
public void testLeague() {
String league = faker.englandfootball().league();
assertThat(league, not(isEmptyOrNullString()));
}
@Test
public void testTeam() {
String team = faker.englandfootball().team();
assertThat(team, not(isEmptyOrNullString()));
}
}

View File

@ -1,5 +1,6 @@
package com.github.javafaker;
import com.github.javafaker.repeating.Repeat;
import org.junit.Test;
import java.util.Locale;
@ -133,6 +134,12 @@ public class FakerTest extends AbstractFakerTest {
assertThat(faker.expression("#{color.name}"), matchesRegularExpression("[a-z\\s]+"));
}
@Test
@Repeat(times = 100)
public void numberBetweenRepeated() {
assertThat(faker.expression("#{number.number_between '1','10'}"), matchesRegularExpression("[1-9]"));
}
@Test
public void regexifyShouldGenerateSameValueForFakerWithSameSeed() {
long seed = 1L;

View File

@ -9,7 +9,7 @@ public class FoodTest extends AbstractFakerTest {
@Test
public void ingredient() {
assertThat(faker.food().ingredient(), matchesRegularExpression("[A-Za-z ]+"));
assertThat(faker.food().ingredient(), matchesRegularExpression("[A-Za-z- ]+"));
}
@Test
@ -17,6 +17,26 @@ public class FoodTest extends AbstractFakerTest {
assertThat(faker.food().spice(), matchesRegularExpression("[A-Za-z1-9- ]+"));
}
@Test
public void dish() {
assertThat(faker.food().dish(), matchesRegularExpression("\\P{Cc}+"));
}
@Test
public void fruit() {
assertThat(faker.food().fruit(), matchesRegularExpression("[A-Za-z1-9- ]+"));
}
@Test
public void vegetable() {
assertThat(faker.food().vegetable(), matchesRegularExpression("[A-Za-z1-9- ]+"));
}
@Test
public void sushi() {
assertThat(faker.food().sushi(), matchesRegularExpression("[A-Za-z1-9- ]+"));
}
@Test
public void measurement() {
assertThat(faker.food().measurement(), matchesRegularExpression("[A-Za-z1-9/ ]+{2}"));

View File

@ -0,0 +1,25 @@
package com.github.javafaker;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
public class GenderTest extends AbstractFakerTest {
@Test
public void types() {
assertThat(faker.gender().types(), matchesRegularExpression("(\\w+ ?){1,2}"));
}
@Test
public void binaryTypes() {
assertThat(faker.gender().binaryTypes(), matchesRegularExpression("[A-Za-z ]+"));
}
@Test
public void shortBinaryTypes() {
assertThat(faker.gender().shortBinaryTypes(), matchesRegularExpression("f|m"));
}
}

View File

@ -28,4 +28,14 @@ public class HarryPotterTest extends AbstractFakerTest {
public void book() {
assertThat(faker.harryPotter().book(), matchesRegularExpression("Harry Potter and the ([A-Za-z'\\-]+ ?)+"));
}
@Test
public void house() {
assertThat(faker.harryPotter().house(), matchesRegularExpression("[A-Za-z ]+"));
}
@Test
public void spell() {
assertThat(faker.harryPotter().spell(), matchesRegularExpression("[A-Za-z ]+"));
}
}

View File

@ -5,7 +5,6 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import org.apache.commons.validator.routines.EmailValidator;
import org.hamcrest.Matchers;
import org.hamcrest.core.IsNot;
import org.junit.Test;
import java.util.List;
@ -14,16 +13,7 @@ import java.util.Locale;
import static com.github.javafaker.matchers.CountOfCharactersMatcher.countOf;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static java.lang.Integer.parseInt;
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.both;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.hamcrest.Matchers.lessThan;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.startsWith;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat;
public class InternetTest extends AbstractFakerTest {
@ -198,7 +188,7 @@ public class InternetTest extends AbstractFakerTest {
assertThat(faker.internet().ipV4Cidr(), countOf('/', is(1)));
for (int i = 0; i < 1000; i++) {
assertThat(parseInt(faker.internet().ipV4Cidr().split("\\/")[1]),
assertThat(parseInt(faker.internet().ipV4Cidr().split("/")[1]),
both(greaterThanOrEqualTo(1)).and(lessThan(32)));
}
}
@ -257,7 +247,7 @@ public class InternetTest extends AbstractFakerTest {
assertThat(faker.internet().ipV6Cidr(), countOf('/', is(1)));
for (int i = 0; i < 1000; i++) {
assertThat(parseInt(faker.internet().ipV6Cidr().split("\\/")[1]),
assertThat(parseInt(faker.internet().ipV6Cidr().split("/")[1]),
both(greaterThanOrEqualTo(1)).and(lessThan(128)));
}
}
@ -302,4 +292,10 @@ public class InternetTest extends AbstractFakerTest {
//Test faker.internet().userAgentAny() for random user_agent retrieval.
assertThat(faker.internet().userAgentAny(), not(isEmptyOrNullString()));
}
@Test
public void testSlugWithNull(){
Faker f=new Faker();
assertThat(f.internet().slug(null,"_"),notNullValue());
}
}

View File

@ -0,0 +1,19 @@
package com.github.javafaker;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class KaamelottTest extends AbstractFakerTest {
@Test
public void testCharacter() {
assertThat(faker.kaamelott().character(), matchesRegularExpression("[A-Za-z' -ÇÉàçêèéïîüùú]+"));
}
@Test
public void testQuote() {
assertThat(faker.kaamelott().quote(), matchesRegularExpression("[-A-Za-z0-9 —ÇÉàçêèéïîüùú;:…\\?\\!\\.'”“,\\[\\]]+"));
}
}

View File

@ -10,7 +10,7 @@ public class LeagueOfLegendsTest extends AbstractFakerTest {
@Test
public void champion() {
assertThat(faker.leagueOfLegends().champion(), matchesRegularExpression("^(\\w+\\.?-?'?\\s?)+$"));
assertThat(faker.leagueOfLegends().champion(), matchesRegularExpression("^(\\w+\\.?-?'?\\s?&?\\s?)+$"));
}
@Test

View File

@ -1,12 +1,15 @@
package com.github.javafaker;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.hamcrest.Matchers.isEmptyString;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import org.hamcrest.Matchers;
import org.junit.Test;
public class LoremTest extends AbstractFakerTest {
@ -71,7 +74,7 @@ public class LoremTest extends AbstractFakerTest {
@Test
public void testCharactersMinimumMaximumLengthIncludeUppercase() {
assertThat(faker.lorem().characters(1, 10), matchesRegularExpression("[a-zA-Z\\d]{1,10}"));
assertThat(faker.lorem().characters(1, 10, true), matchesRegularExpression("[a-zA-Z\\d]{1,10}"));
}
@Test
@ -100,4 +103,8 @@ public class LoremTest extends AbstractFakerTest {
assertThat(faker.lorem().sentence(10, 0), matchesRegularExpression("(\\w+\\s?){10}\\."));
}
@Test
public void testWords() {
assertThat(faker.lorem().words(), hasSize(greaterThanOrEqualTo(1)));
}
}

View File

@ -0,0 +1,21 @@
package com.github.javafaker;
import org.junit.Test;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertThat;
public class MountainTest extends AbstractFakerTest {
@Test
public void testMountainName() {
String mountainName = faker.mountain().name();
assertThat(mountainName, not(isEmptyOrNullString()));
}
@Test
public void testMountainLeague() {
String mountainLeague = faker.mountain().range();
assertThat(mountainLeague, not(isEmptyOrNullString()));
}
}

View File

@ -74,5 +74,10 @@ public class NameTest extends AbstractFakerTest{
doReturn(name).when(faker).name();
assertThat(faker.name().username(), matchesRegularExpression("^(\\w+)\\.(\\w+)$"));
}
@Test
public void testBloodGroup() {
assertThat(faker.name().bloodGroup(), matchesRegularExpression("(A|B|AB|O)[+-]"));
}
}

View File

@ -0,0 +1,36 @@
package com.github.javafaker;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class NationTest extends AbstractFakerTest {
@Test
public void nationality() {
assertThat(faker.nation().nationality(), matchesRegularExpression("\\P{Cc}+"));
}
@Test
public void language() {
assertThat(faker.nation().language(), matchesRegularExpression("[A-Za-z ]+"));
}
@Test
public void capitalCity() {
assertThat(faker.nation().capitalCity(), matchesRegularExpression("[A-Za-z .'()-]+"));
}
@Test
public void flag() {
String flag = faker.nation().flag();
// all utf8 emoji flags are at least 4 characters long and start with the same char
assertThat(flag.length(), is(greaterThanOrEqualTo(4)));
assertThat(flag.charAt(0), is('\uD83C'));
}
}

View File

@ -1,5 +1,6 @@
package com.github.javafaker;
import com.github.javafaker.repeating.Repeat;
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
@ -14,6 +15,7 @@ import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.atomic.AtomicLong;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat;
@ -120,6 +122,26 @@ public class NumberTest extends AbstractFakerTest {
assertThat(v1, is(lessThan(980000000L)));
}
@Test
@Repeat(times = 100)
public void testLongNumberBetweenRepeated() {
long low = 1;
long high = 10;
long v = faker.number().numberBetween(low, high);
assertThat(v, is(lessThan(high)));
assertThat(v, is(greaterThanOrEqualTo(low)));
}
@Test
@Repeat(times = 100)
public void testIntNumberBetweenRepeated() {
int low = 1;
int high = 10;
int v = faker.number().numberBetween(low, high);
assertThat(v, is(lessThan(high)));
assertThat(v, is(greaterThanOrEqualTo(low)));
}
@Test
public void testNumberBetweenOneAndThree() {
Set<Integer> nums = Sets.newHashSet();
@ -134,6 +156,20 @@ public class NumberTest extends AbstractFakerTest {
assertThat(nums, contains(0, 1, 2));
}
@Test
public void testLongBetweenOneAndThree() {
Set<Long> nums = Sets.newHashSet();
final long lowerLimit = 0;
final long upperLimit = 3;
for (int i = 0; i < 1000; ++i) {
long value = faker.number().numberBetween(lowerLimit, upperLimit);
assertThat(value, is(lessThan(upperLimit)));
assertThat(value, is(greaterThanOrEqualTo(lowerLimit)));
nums.add(value);
}
assertThat(nums, contains(0L, 1L, 2L));
}
@Test
public void numberBetweenIntIntZeroMinMax() {
assertThat("Calling numberBetween with min==max yields min, with 0",
@ -266,6 +302,29 @@ public class NumberTest extends AbstractFakerTest {
extremeRunUniquePercent, greaterThanOrEqualTo(individualRunGtPercentUnique));
}
@Test
public void testRandomDoubleMaxEqualsMin() {
double actual = faker.number().randomDouble(1, 42, 42);
double expected = BigDecimal.valueOf(42).doubleValue();
assertThat(actual, equalTo(expected));
}
@Test
public void testDigit() {
String digit = faker.number().digit();
assertThat(digit, matchesRegularExpression("[0-9]"));
}
@Test
public void testDigits() {
String digits = faker.number().digits(5);
assertThat(digits, matchesRegularExpression("[0-9]{5}"));
}
/**
* Over the series of numbers identified from RANDOMIZATION_QUALITY_RANGE_START to
* RANDOMIZATION_QUALITY_RANGE_END, create a min/max range of -value/value and

View File

@ -1,6 +1,5 @@
package com.github.javafaker;
import com.github.javafaker.repeating.Repeat;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;

View File

@ -0,0 +1,71 @@
package com.github.javafaker;
import com.github.javafaker.repeating.Repeat;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.*;
public class PhotographyTest extends AbstractFakerTest{
@Test
public void testAperture() {
final String value = faker.photography().aperture();
assertTrue(value.startsWith("f"));
}
@Test
public void testTerm() {
final String value = faker.photography().term();
assertNonNullOrEmpty(value);
}
@Test
public void brand() {
final String value = faker.photography().brand();
assertNonNullOrEmpty(value);
}
@Test
public void camera() {
final String value = faker.photography().camera();
assertNonNullOrEmpty(value);
}
@Test
public void lens() {
final String value = faker.photography().lens();
assertNonNullOrEmpty(value);
}
@Test
public void genre() {
final String value = faker.photography().genre();
assertNonNullOrEmpty(value);
}
@Test
public void imageTag() {
final String value = faker.photography().imageTag();
assertNonNullOrEmpty(value);
}
@Test
@Repeat(times=7)
public void shutter() {
final String value = faker.photography().shutter();
assertThat(value, matchesRegularExpression("\\d{1,}\\/{0,1}\\d*"));
}
@Test
@Repeat(times=7)
public void iso() {
final String value = faker.photography().iso();
assertThat(value, matchesRegularExpression("\\d{1,}"));
}
private void assertNonNullOrEmpty(String value) {
assertNotNull(value);
assertFalse(value.isEmpty());
}
}

View File

@ -0,0 +1,21 @@
package com.github.javafaker;
import com.github.javafaker.repeating.Repeat;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.junit.Assert.assertThat;
public class ProgrammingLanguageTest extends AbstractFakerTest {
@Test
public void name() {
assertThat(faker.programmingLanguage().name(), matchesRegularExpression("[A-Za-z0-9 :,.+*()#/\\\\-@πéöü'!]+"));
}
@Test
public void creator() {
assertThat(faker.programmingLanguage().creator(), matchesRegularExpression("[A-Za-z .,\\-]+"));
}
}

View File

@ -1,46 +1,83 @@
package com.github.javafaker;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.hamcrest.core.IsNot.not;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class RelationshipTest extends AbstractFakerTest {
@Test
public void anyTest() {
assertThat(faker.relationships().any(), not(isEmptyOrNullString()));
}
@Test
public void directTest() {
assertThat(faker.relationships().direct(), not(isEmptyOrNullString()));
}
@Test
public void extendedTest() {
assertThat(faker.relationships().extended(), not(isEmptyOrNullString()));
}
@Test
public void inLawTest() {
assertThat(faker.relationships().inLaw(), not(isEmptyOrNullString()));
}
@Test
public void spouseTest() {
assertThat(faker.relationships().spouse(), not(isEmptyOrNullString()));
}
@Test
public void parentTest() {
assertThat(faker.relationships().parent(), not(isEmptyOrNullString()));
}
@Test
public void siblingTest() {
assertThat(faker.relationships().sibling(), not(isEmptyOrNullString()));
}
}
package com.github.javafaker;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.hamcrest.core.IsNot.not;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import java.lang.reflect.InvocationTargetException;
public class RelationshipTest extends AbstractFakerTest {
private Faker mockFaker;
@Before
public void before() {
super.before();
mockFaker = Mockito.mock(Faker.class);
}
@Test
public void anyTest() {
assertThat(faker.relationships().any(), not(isEmptyOrNullString()));
}
@Test
public void directTest() {
assertThat(faker.relationships().direct(), not(isEmptyOrNullString()));
}
@Test
public void extendedTest() {
assertThat(faker.relationships().extended(), not(isEmptyOrNullString()));
}
@Test
public void inLawTest() {
assertThat(faker.relationships().inLaw(), not(isEmptyOrNullString()));
}
@Test
public void spouseTest() {
assertThat(faker.relationships().spouse(), not(isEmptyOrNullString()));
}
@Test
public void parentTest() {
assertThat(faker.relationships().parent(), not(isEmptyOrNullString()));
}
@Test
public void siblingTest() {
assertThat(faker.relationships().sibling(), not(isEmptyOrNullString()));
}
@Test(expected = RuntimeException.class)
public void anyWithIllegalArgumentExceptionThrown() {
when(mockFaker.random()).thenThrow(new IllegalArgumentException());
new Relationships(mockFaker).any();
}
@Test(expected = RuntimeException.class)
public void anyWithSecurityExceptionThrown() {
when(mockFaker.random()).thenThrow(new SecurityException());
new Relationships(mockFaker).any();
}
@Test(expected = RuntimeException.class)
public void anyWithIllegalAccessExceptionThrown() {
when(mockFaker.random()).thenThrow(new IllegalAccessException());
new Relationships(mockFaker).any();
}
@Test(expected = RuntimeException.class)
public void anyWithInvocationTargetExceptionThrown() {
when(mockFaker.random()).thenThrow(new InvocationTargetException(new Exception()));
new Relationships(mockFaker).any();
}
}

View File

@ -0,0 +1,141 @@
package com.github.javafaker;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.hamcrest.Matchers.both;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.lessThan;
import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertThat;
public class SipTest extends AbstractFakerTest {
@Test
public void method_returnUpperCaseWithMinimum3Chars() {
assertThat(faker.sip().method(), matchesRegularExpression("^[A-Z]{3,}$"));
}
@Test
public void contentType_returnLowerCaseTwoWordsSepereatedBySlashMinimum3And4Chars() {
assertThat(faker.sip().contentType(), matchesRegularExpression("^[a-z]{4,}[/]{1,}[a-z0-9-]{3,}$"));
}
@Test
public void messagingPort_return4DigitIntBetween1000And9999() {
assertThat(faker.sip().messagingPort(), both(greaterThanOrEqualTo(1000)).and(lessThan(10000)));
}
@Test
public void rtpPort_returnPositiveEvenInt() {
int sut = faker.sip().rtpPort();
assertThat(sut, greaterThanOrEqualTo(2));
assertThat(sut % 2, is(0));
}
@Test
public void provisionalResponseCode_return3DigitIntBetween100And199() {
assertThat(faker.sip().provisionalResponseCode(), both(greaterThanOrEqualTo(100)).and(lessThan(200)));
}
@Test
public void successResponse_Codereturn3DigitIntBetween200And299() {
assertThat(faker.sip().successResponseCode(), both(greaterThanOrEqualTo(200)).and(lessThan(300)));
}
@Test
public void redirectResponseCode_Codereturn3DigitIntBetween300And399() {
assertThat(faker.sip().redirectResponseCode(), both(greaterThanOrEqualTo(300)).and(lessThan(400)));
}
@Test
public void clientErrorResponseCode_Codereturn3DigitIntBetween400And499() {
assertThat(faker.sip().clientErrorResponseCode(), both(greaterThanOrEqualTo(400)).and(lessThan(500)));
}
@Test
public void serverErrorResponseCode_Codereturn3DigitIntBetween500And599() {
assertThat(faker.sip().serverErrorResponseCode(), both(greaterThanOrEqualTo(500)).and(lessThan(600)));
}
@Test
public void globalErrorResponseCode_Codereturn3DigitIntBetween600And699() {
assertThat(faker.sip().globalErrorResponseCode(), both(greaterThanOrEqualTo(600)).and(lessThan(700)));
}
@Test
public void provisionalResponsePhrase_returnAnyNonDigitString() {
assertThat(faker.sip().provisionalResponsePhrase(), matchesRegularExpression("\\D+"));
}
@Test
public void successResponsePhrase_returnAnyNonDigitString() {
assertThat(faker.sip().successResponsePhrase(), matchesRegularExpression("\\D+"));
}
@Test
public void redirectResponsePhrase_returnAnyNonDigitString() {
assertThat(faker.sip().redirectResponsePhrase(), matchesRegularExpression("\\D+"));
}
@Test
public void clientErrorResponsePhrase_returnAnyNonDigitString() {
assertThat(faker.sip().clientErrorResponsePhrase(), matchesRegularExpression("\\D+"));
}
@Test
public void serverErrorResponsePhrase_returnAnyNonDigitString() {
assertThat(faker.sip().serverErrorResponsePhrase(), matchesRegularExpression("\\D+"));
}
@Test
public void globalErrorResponsePhrase_returnAnyNonDigitString() {
assertThat(faker.sip().globalErrorResponsePhrase(), matchesRegularExpression("\\D+"));
}
@Test
public void bodyString_returnAValidSdpBodyString() {
String[] sut = faker.sip().bodyString().split("\n");
assertThat(sut.length, is(7));
assertThat(sut[0], is("v=0"));
String[] secondLine = sut[1].split(" ");
assertThat(secondLine[0], startsWith("o="));
assertThat(secondLine[1], matchesRegularExpression("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"));
assertThat(secondLine[secondLine.length - 1], matchesRegularExpression("[a-z]+\\.\\w{2,4}"));
assertThat(sut[2], is("s=-"));
String[] fourthLine = sut[3].split(" ");
assertThat(fourthLine[0], is("c=IN"));
assertThat(fourthLine[fourthLine.length - 1], matchesRegularExpression("^\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}$"));
assertThat(sut[4], is("t=0 0"));
String[] sixthLine = sut[5].split(" ");
assertThat(sixthLine[0], is("m=audio"));
assertThat(Integer.parseInt(sixthLine[1]), greaterThanOrEqualTo(2));
assertThat(Integer.parseInt(sixthLine[1]) % 2, is(0));
assertThat(sut[6], is("a=rtpmap:0 PCMU/8000"));
}
@Test
public void bodyBytes_isNotNull() {
byte[] sut = faker.sip().bodyBytes();
assertThat(sut.length, notNullValue());
}
@Test
public void nameAddress_returnValidNameAddressString() {
String[] sut = faker.sip().nameAddress().split("@");
assertThat(sut[0].split(":")[1], matchesRegularExpression("\\w+"));
assertThat(sut[1].split(":")[0], matchesRegularExpression("^\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}$"));
}
}

View File

@ -0,0 +1,41 @@
package com.github.javafaker;
import org.junit.Test;
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat;
public class StarCraftTest extends AbstractFakerTest {
private final String noLeadingTrailingWhitespaceRegex = "^(?! )[A-Za-z0-9' ]*(?<! )$";
@Test
public void testUnit() {
String unit = faker.starCraft().unit();
assertThat(unit, not(isEmptyOrNullString()));
assertThat(unit, matchesRegularExpression(noLeadingTrailingWhitespaceRegex));
}
@Test
public void testBuilding() {
String building = faker.starCraft().building();
assertThat(building, not(isEmptyOrNullString()));
assertThat(building, matchesRegularExpression(noLeadingTrailingWhitespaceRegex));
}
@Test
public void testCharacter() {
String character = faker.starCraft().character();
assertThat(character, not(isEmptyOrNullString()));
assertThat(character, matchesRegularExpression(noLeadingTrailingWhitespaceRegex));
}
@Test
public void testPlanet() {
String planet = faker.starCraft().planet();
assertThat(planet, not(isEmptyOrNullString()));
assertThat(planet, matchesRegularExpression(noLeadingTrailingWhitespaceRegex));
}
}

Some files were not shown because too many files have changed in this diff Show More