-
Notifications
You must be signed in to change notification settings - Fork 863
Expand file tree
/
Copy pathEnFile.java
More file actions
211 lines (199 loc) · 6.08 KB
/
EnFile.java
File metadata and controls
211 lines (199 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
package com.github.javafaker.service.files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class EnFile {
private final String file;
private final String path;
private EnFile(String file) {
this(file, file.replaceFirst(".yml", ""));
}
private EnFile(String file, String path) {
this.file = file;
this.path = path;
}
public String getFile() {
return file;
}
public String getPath() {
return path;
}
private static List<String> FILES = Arrays.asList("address.yml",
"ancient.yml",
"animal.yml",
"app.yml",
"appliance.yml",
"aqua_teen_hunger_force.yml",
"artist.yml",
"aviation.yml",
"back_to_the_future.yml",
"barcode.yml",
"bank.yml",
"basketball.yml",
"beer.yml",
"bojack_horseman.yml",
"book.yml",
"bossa_nova.yml",
"breaking_bad.yml",
"buffy.yml",
"business.yml",
"cannabis.yml",
"chuck_norris.yml",
"code.yml",
"coffee.yml",
"coin.yml",
"color.yml",
"commerce.yml",
"community.yml",
"company.yml",
"compass.yml",
"construction.yml",
"cosmere.yml",
"country.yml",
"crypto_coin.yml",
"currency.yml",
"dc_comics.yml",
"demographic.yml",
"dessert.yml",
"device.yml",
"disease.yml",
"dota.yml",
"dr_who.yml",
"dragon_ball.yml",
"dumb_and_dumber.yml",
"dune.yml",
"educator.yml",
"elder_scrolls.yml",
"electrical_components.yml",
"esport.yml",
"englandfootball.yml",
"fallout.yml",
"family_guy.yml",
"famous_last_words.yml",
"file.yml",
"finance.yml",
"food.yml",
"football.yml",
"fresh_prince_of_bel_air.yml",
"friends.yml",
"funny_name.yml",
"game_of_thrones.yml",
"garments_sizes.yml",
"gender.yml",
"ghostbusters.yml",
"grateful_dead.yml",
"greek_philosophers.yml",
"hacker.yml",
"half_life.yml",
"harry_potter.yml",
"heroes.yml",
"heroes_of_the_storm.yml",
"hey_arnold.yml",
"hipster.yml",
"hitchhikers_guide_to_the_galaxy.yml",
"hobbit.yml",
"house.yml",
"how_i_met_your_mother.yml",
"id_number.yml",
"industry_segments.yml",
"internet.yml",
"invoice.yml",
"job.yml",
"kpop.yml",
"lebowski.yml",
"lord_of_the_rings.yml",
"lorem.yml",
"lovecraft.yml",
"markdown.yml",
"marketing.yml",
"matz.yml",
"measurement.yml",
"medical.yml",
"michael_scott.yml",
"military.yml",
"most_interesting_man_in_the_world.yml",
"movie.yml",
"mountain.yml",
"music.yml",
"myst.yml",
"name.yml",
"nation.yml",
"nato_phonetic_alphabet.yml",
"new_girl.yml",
"one_piece.yml",
"overwatch.yml",
"parks_and_rec.yml",
"phish.yml",
"phone_number.yml",
"photography.yml",
"pokemon.yml",
"princess_bride.yml",
"programming_language.yml",
"relationship.yml",
"restaurant.yml",
"rick_and_morty.yml",
"robin.yml",
"rock_band.yml",
"rupaul.yml",
"science.yml",
"seinfeld.yml",
"shakespeare.yml",
"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",
"stock.yml",
"stranger_thing.yml",
"stripe.yml",
"subscription.yml",
"super_smash_bros.yml",
"superhero.yml",
"sword_art_online.yml",
"team.yml",
"the_expanse.yml",
"the_it_crowd.yml",
"the_thick_of_it.yml",
"twin_peaks.yml",
"umphreys_mcgee.yml",
"university.yml",
"v_for_vendetta.yml",
"vehicle.yml",
"venture_bros.yml",
"verbs.yml",
"weather.yml",
"witcher.yml",
"kaamelott.yml",
"world_cup.yml",
"world_of_warcraft.yml",
"yoda.yml",
"zelda.yml");
// files where the search path can't be derived from the filename
private static List<EnFile> FILES_WITH_A_DIFFERENT_PATH = Arrays.asList(
new EnFile("animal.yml", "creature"),
new EnFile("cat.yml", "creature"),
new EnFile("dog.yml", "creature"),
new EnFile("league_of_legends.yml", "games"),
new EnFile("overwatch.yml", "games"),
new EnFile("pokemon.yml", "games"),
new EnFile("witcher.yml", "games"),
new EnFile("zelda.yml", "games"),
new EnFile("elder_scrolls.yml", "games"),
new EnFile("phone_number.yml", "cell_phone")); // load phone number again with a differen path
public static List<EnFile> getFiles() {
List<EnFile> files = new ArrayList<EnFile>();
for (String file : FILES) {
files.add(new EnFile(file));
}
files.addAll(FILES_WITH_A_DIFFERENT_PATH);
return files;
}
}