Skip to content

Commit dc4c6c2

Browse files
committed
Modifying gitignore.
1 parent a74a5f4 commit dc4c6c2

File tree

2 files changed

+240
-1
lines changed
  • phileas-services/phileas-services-anonymization/src/main/java/ai/philterd/phileas/services/anonymization/faker/service/files

2 files changed

+240
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ dependency-reduced-pom.xml
1414
deployment-bucket/
1515
distribution/indexes
1616
distribution/documentation/
17-
files/
1817
manifest.json
1918
.attach_*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
/*
2+
* Copyright 2024 Philterd, LLC @ https://www.philterd.ai
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
/*
17+
* Copyright 2014 DiUS Computing
18+
*
19+
* Licensed under the Apache License, Version 2.0 (the "License");
20+
* you may not use this file except in compliance with the License.
21+
* You may obtain a copy of the License at
22+
*
23+
* http://www.apache.org/licenses/LICENSE-2.0
24+
*
25+
* Unless required by applicable law or agreed to in writing, software
26+
* distributed under the License is distributed on an "AS IS" BASIS,
27+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28+
* See the License for the specific language governing permissions and
29+
* limitations under the License.
30+
*/
31+
package ai.philterd.phileas.services.anonymization.faker.service.files;
32+
33+
import java.util.ArrayList;
34+
import java.util.Arrays;
35+
import java.util.List;
36+
37+
public class EnFile {
38+
private final String file;
39+
private final String path;
40+
41+
private EnFile(String file) {
42+
this(file, file.replaceFirst(".yml", ""));
43+
}
44+
45+
private EnFile(String file, String path) {
46+
this.file = file;
47+
this.path = path;
48+
}
49+
50+
51+
public String getFile() {
52+
return file;
53+
}
54+
55+
public String getPath() {
56+
return path;
57+
}
58+
59+
private static List<String> FILES = Arrays.asList("address.yml",
60+
"ancient.yml",
61+
"animal.yml",
62+
"app.yml",
63+
"appliance.yml",
64+
"aqua_teen_hunger_force.yml",
65+
"artist.yml",
66+
"aviation.yml",
67+
"back_to_the_future.yml",
68+
"barcode.yml",
69+
"bank.yml",
70+
"basketball.yml",
71+
"beer.yml",
72+
"bojack_horseman.yml",
73+
"book.yml",
74+
"bossa_nova.yml",
75+
"breaking_bad.yml",
76+
"buffy.yml",
77+
"business.yml",
78+
"cannabis.yml",
79+
"chuck_norris.yml",
80+
"code.yml",
81+
"coffee.yml",
82+
"coin.yml",
83+
"color.yml",
84+
"commerce.yml",
85+
"community.yml",
86+
"company.yml",
87+
"compass.yml",
88+
"construction.yml",
89+
"cosmere.yml",
90+
"country.yml",
91+
"crypto_coin.yml",
92+
"currency.yml",
93+
"dc_comics.yml",
94+
"demographic.yml",
95+
"dessert.yml",
96+
"device.yml",
97+
"disease.yml",
98+
"dota.yml",
99+
"dr_who.yml",
100+
"dragon_ball.yml",
101+
"dumb_and_dumber.yml",
102+
"dune.yml",
103+
"educator.yml",
104+
"elder_scrolls.yml",
105+
"electrical_components.yml",
106+
"esport.yml",
107+
"englandfootball.yml",
108+
"fallout.yml",
109+
"family_guy.yml",
110+
"famous_last_words.yml",
111+
"file.yml",
112+
"finance.yml",
113+
"food.yml",
114+
"football.yml",
115+
"fresh_prince_of_bel_air.yml",
116+
"friends.yml",
117+
"funny_name.yml",
118+
"game_of_thrones.yml",
119+
"gender.yml",
120+
"ghostbusters.yml",
121+
"grateful_dead.yml",
122+
"greek_philosophers.yml",
123+
"hacker.yml",
124+
"half_life.yml",
125+
"harry_potter.yml",
126+
"heroes.yml",
127+
"heroes_of_the_storm.yml",
128+
"hey_arnold.yml",
129+
"hipster.yml",
130+
"hitchhikers_guide_to_the_galaxy.yml",
131+
"hobbit.yml",
132+
"house.yml",
133+
"how_i_met_your_mother.yml",
134+
"id_number.yml",
135+
"industry_segments.yml",
136+
"internet.yml",
137+
"invoice.yml",
138+
"job.yml",
139+
"kpop.yml",
140+
"lebowski.yml",
141+
"lord_of_the_rings.yml",
142+
"lorem.yml",
143+
"lovecraft.yml",
144+
"markdown.yml",
145+
"marketing.yml",
146+
"matz.yml",
147+
"measurement.yml",
148+
"medical.yml",
149+
"michael_scott.yml",
150+
"military.yml",
151+
"most_interesting_man_in_the_world.yml",
152+
"movie.yml",
153+
"mountain.yml",
154+
"music.yml",
155+
"myst.yml",
156+
"name.yml",
157+
"nation.yml",
158+
"nato_phonetic_alphabet.yml",
159+
"new_girl.yml",
160+
"one_piece.yml",
161+
"overwatch.yml",
162+
"parks_and_rec.yml",
163+
"phish.yml",
164+
"phone_number.yml",
165+
"photography.yml",
166+
"pokemon.yml",
167+
"princess_bride.yml",
168+
"programming_language.yml",
169+
"relationship.yml",
170+
"restaurant.yml",
171+
"rick_and_morty.yml",
172+
"robin.yml",
173+
"rock_band.yml",
174+
"rupaul.yml",
175+
"science.yml",
176+
"seinfeld.yml",
177+
"shakespeare.yml",
178+
"silicon_valley.yml",
179+
"simpsons.yml",
180+
"singular_siegler.yml",
181+
"sip.yml",
182+
"slack_emoji.yml",
183+
"sonic_the_hedgehog.yml",
184+
"source.yml",
185+
"south_park.yml",
186+
"space.yml",
187+
"starcraft.yml",
188+
"star_trek.yml",
189+
"star_wars.yml",
190+
"stargate.yml",
191+
"stock.yml",
192+
"stranger_thing.yml",
193+
"stripe.yml",
194+
"subscription.yml",
195+
"super_smash_bros.yml",
196+
"superhero.yml",
197+
"sword_art_online.yml",
198+
"team.yml",
199+
"the_expanse.yml",
200+
"the_it_crowd.yml",
201+
"the_thick_of_it.yml",
202+
"twin_peaks.yml",
203+
"umphreys_mcgee.yml",
204+
"university.yml",
205+
"v_for_vendetta.yml",
206+
"vehicle.yml",
207+
"venture_bros.yml",
208+
"verbs.yml",
209+
"weather.yml",
210+
"witcher.yml",
211+
"kaamelott.yml",
212+
"world_cup.yml",
213+
"world_of_warcraft.yml",
214+
"yoda.yml",
215+
"zelda.yml");
216+
217+
// files where the search path can't be derived from the filename
218+
private static List<EnFile> FILES_WITH_A_DIFFERENT_PATH = Arrays.asList(
219+
new EnFile("animal.yml", "creature"),
220+
new EnFile("cat.yml", "creature"),
221+
new EnFile("dog.yml", "creature"),
222+
new EnFile("league_of_legends.yml", "games"),
223+
new EnFile("overwatch.yml", "games"),
224+
new EnFile("pokemon.yml", "games"),
225+
new EnFile("witcher.yml", "games"),
226+
new EnFile("zelda.yml", "games"),
227+
new EnFile("elder_scrolls.yml", "games"),
228+
new EnFile("phone_number.yml", "cell_phone")); // load phone number again with a differen path
229+
230+
231+
public static List<EnFile> getFiles() {
232+
List<EnFile> files = new ArrayList<EnFile>();
233+
for (String file : FILES) {
234+
files.add(new EnFile(file));
235+
}
236+
files.addAll(FILES_WITH_A_DIFFERENT_PATH);
237+
238+
return files;
239+
}
240+
}

0 commit comments

Comments
 (0)