From 9dc55e50d529e0b2557ea07bb70e292c3829306c Mon Sep 17 00:00:00 2001 From: jihoonl Date: Fri, 30 Oct 2009 00:10:32 +0000 Subject: [PATCH] e-mail generator --- .../Distributed/SpamFilter/emails/URLList | 133 ++++++++++++ .../Distributed/SpamFilter/emails/accountList | 100 +++++++++ .../Distributed/SpamFilter/emails/gen.c | 139 ++++++++++++ .../Distributed/SpamFilter/emails/wordList | 201 ++++++++++++++++++ 4 files changed, 573 insertions(+) create mode 100644 Robust/src/Benchmarks/Distributed/SpamFilter/emails/URLList create mode 100644 Robust/src/Benchmarks/Distributed/SpamFilter/emails/accountList create mode 100644 Robust/src/Benchmarks/Distributed/SpamFilter/emails/gen.c create mode 100644 Robust/src/Benchmarks/Distributed/SpamFilter/emails/wordList diff --git a/Robust/src/Benchmarks/Distributed/SpamFilter/emails/URLList b/Robust/src/Benchmarks/Distributed/SpamFilter/emails/URLList new file mode 100644 index 00000000..223fa179 --- /dev/null +++ b/Robust/src/Benchmarks/Distributed/SpamFilter/emails/URLList @@ -0,0 +1,133 @@ +http://www.ver.com +http://www.Vacaville.com +http://www.Fort.com +http://www.Worth.com +http://www.City.com +http://www.of.com +http://www.Industry.com +http://www.Waycross.com +http://www.Coatesville.com +http://www.Fremont.com +http://www.Chickasha.com +http://www.Broken.com +http://www.Arrow.com +http://www.West.com +http://www.Valley.com +http://www.City.com +http://www.Oro.com +http://www.Valley.com +http://www.Poughkeepsie.com +http://www.Downey.com +http://www.Port.com +http://www.Huron.com +http://www.Greensburg.com +http://www.Cheyenne.com +http://www.San.com +http://www.Fernando.com +http://www.Nichols.com +http://www.Hills.com +http://www.Lockport.com +http://www.Flagstaff.com +http://www.Long.com +http://www.Beach.com +http://www.Cortland.com +http://www.Sioux.com +http://www.Falls.com +http://www.Brookfield.com +http://www.Merced.com +http://www.Miami.com +http://www.Beach.com +http://www.Phenix.com +http://www.City.com +http://www.Allentown.com +http://www.Plattsburgh.com +http://www.Muncie.com +http://www.Belleville.com +http://www.Wausau.com +http://www.Longview.com +http://www.Healdsburg.com +http://www.Buena.com +http://www.Park.com +http://www.Knoxville.com +http://www.Miami.com +http://www.Gardens.com +http://www.Joliet.com +http://www.New.com +http://www.Kensington.com +http://www.Oxnard.com +http://www.Honolulu.com +http://www.Fairmont.com +http://www.Homer.com +http://www.Norfolk.com +http://www.Yuma.com +http://www.Rialto.com +http://www.San.com +http://www.Luis.com +http://www.Obispo.com +http://www.San.com +http://www.Diego.com +http://www.Helena.com +http://www.Fontana.com +http://www.Bethany.com +http://www.The.com +http://www.Dalles.com +http://www.Little.com +http://www.Rock.com +http://www.Vancouver.com +http://www.Abilene.com +http://www.Baldwin.com +http://www.Park.com +http://www.Laramie.com +http://www.Philadelphia.com +http://www.Beaumont.com +http://www.Columbus.com +http://www.Farmer.com +http://www.City.com +http://www.Carson.com +http://www.City.com +http://www.Carbondale.com +http://www.Sandpoint.com +http://www.Lynwood.com +http://www.Easton.com +http://www.Easthampton.com +http://www.Berkeley.com +http://www.Pawtucket.com +http://www.Sun.com +http://www.Valley.com +http://www.Riverside.com +http://www.Bethany.com +http://www.Chelsea.com +http://www.Cedarburg.com +http://www.Portland.com +http://www.Chattanooga.com +http://www.Tok.com +http://www.Lowell.com +http://www.Watertown.com +http://www.Escondido.com +http://www.Sault.com +http://www.Ste..com +http://www.Marie.com +http://www.Ansonia.com +http://www.Chico.com +http://www.Frederiksted.com +http://www.Webster.com +http://www.Groves.com +http://www.Chicopee.com +http://www.Hammond.com +http://www.Jenks.com +http://www.Stanton.com +http://www.Johnstown.com +http://www.New.com +http://www.London.com +http://www.Charleston.com +http://www.Mobile.com +http://www.Rochester.com +http://www.West.com +http://www.Allis.com +http://www.Blacksburg.com +http://www.Albany.com +http://www.Covina.com +http://www.City.com +http://www.of.com +http://www.Industry.com +http://www.Phoenix.com diff --git a/Robust/src/Benchmarks/Distributed/SpamFilter/emails/accountList b/Robust/src/Benchmarks/Distributed/SpamFilter/emails/accountList new file mode 100644 index 00000000..a56057eb --- /dev/null +++ b/Robust/src/Benchmarks/Distributed/SpamFilter/emails/accountList @@ -0,0 +1,100 @@ +enean.euismod@Proin.org +ante.ipsum.primis@mi.edu +accumsan@idanteNunc.com +facilisis@cursus.ca +ut.eros.non@nonummyac.com +mi@aliquet.ca +a.arcu.Sed@rutrum.edu +id.nunc.interdum@Nullamvitaediam.org +lectus.pede.et@quisarcu.com +Quisque@odiotristiquepharetra.ca +aliquet.vel.vulputate@tempordiam.edu +in.magna.Phasellus@a.edu +risus.Duis.a@sit.ca +Duis@loremeget.org +semper.tellus@etlibero.com +aliquam.eu.accumsan@tinciduntnibh.com +tristique.neque@nonleo.ca +eget.varius.ultrices@cubilia.ca +quis@mollisvitaeposuere.ca +Cum.sociis@Nuncuterat.edu +diam.vel@netusetmalesuada.com +Donec.elementum@lacuspede.org +suscipit.nonummy.Fusce@sedleo.edu +amet@ullamcorperviverraMaecenas.ca +in.lobortis.tellus@enimEtiam.ca +urna.Ut@nec.edu +laoreet.lectus@felisullamcorper.com +fermentum.risus.at@risus.org +Morbi.non.sapien@felisNullatempor.org +vitae@convallisdolorQuisque.org +et.risus@consequat.com +sed@odiotristique.org +condimentum.Donec@eros.edu +Vivamus.non@apurusDuis.org +mauris.Morbi@egetmassaSuspendisse.com +non.luctus@Quisqueaclibero.com +sed.hendrerit@utaliquam.edu +accumsan.interdum.libero@infaucibusorci.com +fringilla@turpis.ca +scelerisque@urna.edu +commodo.hendrerit@actellus.ca +egestas.a.scelerisque@luctusaliquet.com +justo.eu.arcu@nostraper.edu +arcu.et@turpis.com +Suspendisse.aliquet@nisl.ca +fringilla@rhoncusid.org +elit.erat.vitae@sit.com +ut@etmagnis.edu +ante.Nunc.mauris@quam.ca +placerat.Cras@Uttinciduntorci.org +morbi@molestie.org +porttitor@sit.com +Aenean.egestas.hendrerit@lacus.ca +sed.dui@Nulla.edu +Etiam@NulladignissimMaecenas.org +pede.sagittis@scelerisque.com +Praesent.eu.dui@aliquameu.ca +mollis@velit.ca +auctor.ullamcorper@et.org +est@nisiaodio.com +sagittis@turpisegestasAliquam.org +neque.sed@ultricesposuere.ca +Proin.non.massa@molestieorci.org +nulla.Integer@Praesenteudui.org +molestie.pharetra@at.edu +egestas.Aliquam@necluctus.ca +erat.eget.tincidunt@sem.com +arcu.eu@tinciduntnuncac.edu +semper.pretium.neque@lacusAliquamrutrum.ca +sem.mollis@egetodio.com +Donec@necorciDonec.com +non.justo.Proin@tellus.edu +ut@egetvolutpatornare.edu +et@cursusnon.ca +Quisque.ornare@inceptoshymenaeos.com +non.justo@tempor.org +Proin.mi@elitNulla.edu +pellentesque.Sed.dictum@semNullainterdum.org +vel.est.tempor@et.ca +Ut@infaucibus.ca +ipsum.Donec@tellusimperdietnon.org +nec.luctus.felis@mauris.com +rutrum.justo.Praesent@Nunclectus.ca +blandit.enim@odiosempercursus.com +turpis.egestas@semperduilectus.com +rhoncus.Donec@Mauris.com +fermentum.metus.Aenean@massanonante.org +non@nisl.org +orci.adipiscing@cursus.ca +ornare.In.faucibus@aliquamiaculislacus.com +ligula@ac.ca +dui.augue@Phaselluselit.ca +ultrices.sit.amet@magnisdis.edu +lacus@SedmolestieSed.org +fermentum.convallis@facilisisfacilisismagna.org +Vestibulum.ut.eros@musAeneaneget.com +mattis@quisaccumsanconvallis.ca +id.erat@euaccumsan.org +velit.eget@dapibus.org +quam@dolorsitamet.com diff --git a/Robust/src/Benchmarks/Distributed/SpamFilter/emails/gen.c b/Robust/src/Benchmarks/Distributed/SpamFilter/emails/gen.c new file mode 100644 index 00000000..55a09789 --- /dev/null +++ b/Robust/src/Benchmarks/Distributed/SpamFilter/emails/gen.c @@ -0,0 +1,139 @@ +#include +#include +#include + +#define WORD_FILE "wordList" +#define URL_FILE "URLList" +#define ACCOUNT_FILE "accountList" +#define FILE_NAME "email" +#define NUM_EMAIL 100 + +char** readList(char* fileName,int* num); +void generateEmails(int,char**,int,char**,int,char**,int,char*); +void freeList(char**,int); + +int main() +{ + int num_email = NUM_EMAIL; // how many emails do you need? + char** wordList; + char** urlList; + char** accountList; + int word_num; + int url_num; + int account_num; + + wordList = readList(WORD_FILE,&word_num); + urlList = readList(URL_FILE,&url_num); + accountList = readList(ACCOUNT_FILE,&account_num); + + generateEmails(NUM_EMAIL,wordList,word_num,urlList,url_num,accountList,account_num,FILE_NAME); + + freeList(wordList,word_num); + freeList(urlList,url_num); + freeList(accountList,account_num); + + return 0; +} + +void freeList(char** list,int num) +{ + int i; + + for(i=0;i