From 3f99edf8a0b2d04db0ba53b9226535a65271edac Mon Sep 17 00:00:00 2001 From: Kenan Turgay Date: Thu, 17 Oct 2024 13:43:25 +0300 Subject: [PATCH 1/2] Kenan Turgay --- .idea/checkstyle-idea.xml | 16 ++++ .idea/vcs.xml | 6 ++ src/main/java/org/example/Main.java | 7 ++ .../java/org/example/entity/Priority.java | 5 ++ src/main/java/org/example/entity/Status.java | 5 ++ .../java/org/example/entity/StringSet.java | 42 ++++++++++ src/main/java/org/example/entity/Task.java | 73 ++++++++++++++++++ .../java/org/example/entity/TaskData.java | 55 +++++++++++++ src/test/java/MainTest.java | 1 + src/test/java/ResultAnalyzer.java | 2 +- target/classes/org/example/Main.class | Bin 0 -> 1234 bytes .../classes/org/example/entity/Priority.class | Bin 0 -> 1076 bytes .../classes/org/example/entity/Status.class | Bin 0 -> 1079 bytes .../org/example/entity/StringSet.class | Bin 0 -> 2687 bytes target/classes/org/example/entity/Task.class | Bin 0 -> 2232 bytes .../classes/org/example/entity/TaskData.class | Bin 0 -> 2796 bytes target/test-classes/MainTest.class | Bin 0 -> 6483 bytes .../ResultAnalyzer$TestResultStatus.class | Bin 0 -> 1259 bytes target/test-classes/ResultAnalyzer.class | Bin 0 -> 4663 bytes 19 files changed, 211 insertions(+), 1 deletion(-) create mode 100644 .idea/checkstyle-idea.xml create mode 100644 .idea/vcs.xml create mode 100644 src/main/java/org/example/entity/Priority.java create mode 100644 src/main/java/org/example/entity/Status.java create mode 100644 src/main/java/org/example/entity/StringSet.java create mode 100644 src/main/java/org/example/entity/Task.java create mode 100644 src/main/java/org/example/entity/TaskData.java create mode 100644 target/classes/org/example/Main.class create mode 100644 target/classes/org/example/entity/Priority.class create mode 100644 target/classes/org/example/entity/Status.class create mode 100644 target/classes/org/example/entity/StringSet.class create mode 100644 target/classes/org/example/entity/Task.class create mode 100644 target/classes/org/example/entity/TaskData.class create mode 100644 target/test-classes/MainTest.class create mode 100644 target/test-classes/ResultAnalyzer$TestResultStatus.class create mode 100644 target/test-classes/ResultAnalyzer.class diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..61a511c --- /dev/null +++ b/.idea/checkstyle-idea.xml @@ -0,0 +1,16 @@ + + + + 10.18.1 + JavaOnly + true + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java index 407f157..02700db 100644 --- a/src/main/java/org/example/Main.java +++ b/src/main/java/org/example/Main.java @@ -1,7 +1,14 @@ package org.example; +import org.example.entity.StringSet; + +import java.util.Set; + public class Main { public static void main(String[] args) { System.out.println("Hello world!"); + + Set uniqueWords = StringSet.findUniqueWords(); + System.out.println("Benzersiz kelimeler: " + uniqueWords); } } \ No newline at end of file diff --git a/src/main/java/org/example/entity/Priority.java b/src/main/java/org/example/entity/Priority.java new file mode 100644 index 0000000..690a359 --- /dev/null +++ b/src/main/java/org/example/entity/Priority.java @@ -0,0 +1,5 @@ +package org.example.entity; + +public enum Priority { + HIGH, MED, LOW +} diff --git a/src/main/java/org/example/entity/Status.java b/src/main/java/org/example/entity/Status.java new file mode 100644 index 0000000..80145f4 --- /dev/null +++ b/src/main/java/org/example/entity/Status.java @@ -0,0 +1,5 @@ +package org.example.entity; + +public enum Status { + IN_QUEUE, ASSIGNED, IN_PROGRESS +} diff --git a/src/main/java/org/example/entity/StringSet.java b/src/main/java/org/example/entity/StringSet.java new file mode 100644 index 0000000..992bda0 --- /dev/null +++ b/src/main/java/org/example/entity/StringSet.java @@ -0,0 +1,42 @@ +package org.example.entity; + +import java.util.Arrays; +import java.util.Comparator; +import java.util.HashSet; +import java.util.Set; +import java.util.stream.Collectors; + +public class StringSet { + + public static Set findUniqueWords() { + String text = "Carroll began writing the manuscript of the story the next day, although that earliest version is lost. " + + "The girls and Carroll took another boat trip a month later, when he elaborated the plot to the story of Alice, " + + "and in November he began working on the manuscript in earnest. To add the finishing touches he researched " + + "natural history in connection with the animals presented in the book and then had the book examined " + + "by other children—particularly those of George MacDonald. Though Carroll did add his own illustrations " + + "to the original copy, on publication he was advised to find a professional illustrator so the pictures " + + "were more appealing to its audiences. He subsequently approached John Tenniel to reinterpret " + + "Carroll's visions through his own artistic eye, telling him that the story had been well liked by the " + + "children.\n" + + "\n" + + "Carroll began planning a print edition of the Alice story in 1863. " + + "He wrote on 9 May 1863 that MacDonald's family had suggested he publish Alice. " + + "A diary entry for 2 July says that he received a specimen page of the print edition around that date. " + + "On 26 November 1864, Carroll gave Alice the manuscript of Alice's Adventures Under Ground, with illustrations " + + "by Carroll, dedicating it as \"A Christmas Gift to a Dear Child in Memory of a Summer's Day\". " + + "The published version of Alice's Adventures in Wonderland is about twice the length of " + + "Alice's Adventures Under Ground and includes episodes, such as the Mad Tea-Party, " + + "that did not appear in the manuscript. The only known manuscript copy of Under Ground " + + "is held in the British Library. Macmillan published a facsimile of the manuscript in 1886."; + + // Özel karakterleri temizle + String cleanedText = text.replaceAll("[.,!?\"'—]", "").toLowerCase(); + + // Kelimeleri ayır ve benzersiz olanları bul + Set uniqueWords = new HashSet<>(Arrays.asList(cleanedText.split("\\s+"))); + + // Benzersiz kelimeleri alfabetik sıraya koy ve döndür + return uniqueWords; + } + +} diff --git a/src/main/java/org/example/entity/Task.java b/src/main/java/org/example/entity/Task.java new file mode 100644 index 0000000..12f1339 --- /dev/null +++ b/src/main/java/org/example/entity/Task.java @@ -0,0 +1,73 @@ +package org.example.entity; + +import java.util.Objects; + +public class Task { + private String project; + private String description; + private String assignee; + private Status status; + private Priority priority; + + + public Task(String project, String description, String assignee, Status status, Priority priority) { + this.project = project; + this.description = description; + this.assignee = assignee; + this.status = status; + this.priority = priority; + } + + public String getProject() { + return project; + } + + public String getDescription() { + return description; + } + + public String getAssignee() { + return assignee; + } + + public Status getStatus() { + return status; + } + + public Priority getPriority() { + return priority; + } + + public void setProject(String project) { + this.project = project; + } + + public void setDescription(String description) { + this.description = description; + } + + public void setAssignee(String assignee) { + this.assignee = assignee; + } + + public void setStatus(Status status) { + this.status = status; + } + + public void setPriority(Priority priority) { + this.priority = priority; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Task task = (Task) o; + return Objects.equals(project, task.project) && Objects.equals(description, task.description); + } + + @Override + public int hashCode() { + return Objects.hash(project, description); + } +} diff --git a/src/main/java/org/example/entity/TaskData.java b/src/main/java/org/example/entity/TaskData.java new file mode 100644 index 0000000..219bb35 --- /dev/null +++ b/src/main/java/org/example/entity/TaskData.java @@ -0,0 +1,55 @@ +package org.example.entity; + +import org.example.entity.Task; + +import java.util.HashSet; +import java.util.Set; + +public class TaskData { + private Set annTasks; + private Set bobsTasks; + private Set carolsTasks; + private Set unassignedTasks; + + public TaskData(Set annTasks, Set bobsTasks, Set carolsTasks, Set unassignedTasks) { + this.annTasks = annTasks; + this.bobsTasks = bobsTasks; + this.carolsTasks = carolsTasks; + this.unassignedTasks = unassignedTasks; + } + + public Set getTasks(String user) { + switch (user.toLowerCase()) { + case "ann": + return annTasks; + case "bob": + return bobsTasks; + case "carol": + return carolsTasks; + case "all": + return getUnion(annTasks, bobsTasks, carolsTasks, unassignedTasks); + default: + return new HashSet<>(); // veya null dönebilirsiniz + } + } + + public Set getUnion(Set... sets) { + Set unionSet = new HashSet<>(); + for (Set set : sets) { + unionSet.addAll(set); + } + return unionSet; + } + + public Set getIntersection(Set set1, Set set2) { + Set intersectionSet = new HashSet<>(set1); + intersectionSet.retainAll(set2); + return intersectionSet; + } + + public Set getDifferences(Set set1, Set set2) { + Set differenceSet = new HashSet<>(set1); + differenceSet.removeAll(set2); + return differenceSet; + } +} diff --git a/src/test/java/MainTest.java b/src/test/java/MainTest.java index 242f8aa..f50dd6b 100644 --- a/src/test/java/MainTest.java +++ b/src/test/java/MainTest.java @@ -10,6 +10,7 @@ import java.util.Set; import java.util.stream.Collectors; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.instanceOf; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/ResultAnalyzer.java b/src/test/java/ResultAnalyzer.java index ae8defe..fa9e6ca 100644 --- a/src/test/java/ResultAnalyzer.java +++ b/src/test/java/ResultAnalyzer.java @@ -55,7 +55,7 @@ public void afterAll(ExtensionContext context) throws Exception { long failure = summary.get(TestResultStatus.FAILED) != null ? summary.get(TestResultStatus.FAILED) : 0; double score = (double) success / (success + failure); - String userId = "999999"; + String userId = "179820"; JSONObject json = new JSONObject(); json.put("score", score); diff --git a/target/classes/org/example/Main.class b/target/classes/org/example/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..11e00d27a339ae318bad21f2ea627ce29ce7e459 GIT binary patch literal 1234 zcmaJ>YflqF6g@)=OUq)RXaPlR1+)caeLpB*LKA{XQIjHk@YB$aW$1RM?oQG2OZ*%9 zK@A`L0sbiC-EP&bG>c5{I{RLGZY`I@1STz{ZA{@J!_^Y7jyZpn&ndsVS5gUS*C;nm=TNs%qBjc+{O+7;$V*ZkB7?j>;_ z4=g+kgnz`a`1dYKb)p-hcZ%UzZ1bwoUWegh^iK2wL(mSr#5ldg< z9@RM@JgQ*W9mVL0_aI8#bt}>cy6sO$z%8Lph3CuDY(u!RDO};LWf`@>bESk=a=Gsd z-vWuXbgte(Wmwo?nE!t$HEmcka=1nf9{h&Df)=MSM>~gRM)UCUSFlfA_jMWrH(+6b zMmr3^B9>^Ezzy6aOOV_kumE)SGpzLZ7o@&Xztei<3|9c!2Y@jIfN8{O489uly`X0X z<6ZDf2!K2a@Ud>Od? zfDTD8$T}3n$?onw-DSvIQ}`7gkkFCj0n+o@V~#KA&;_>YZ#cfFV+Lskb+!4(dR=QU zEWMqYR6_=rRit&y;tGS(@%p~QFk3LJefz*RJ=^b^_4dBg2`d`1xT<1aM-B^A>x@wI zhdnBKV0%NS{+?m8FcH1u*@Ho4!qEr=*Y8#)EARv&e_qEDt}(=`uJ49h40DsIqR2g? znSi3vy!ix@3F!QIQ^zf=@zF&a1BT^-F@1O{bIO%>`tNA&8O!yZ7sFoL30~Q4k38l7 z)HkL|%8;@89ouW#fy;A5iDcjIQNGN1A?W?X4=y#FY`9(D4u=8pq=M0;_pWxlNCxffGlm6u(VM?I>$GO7z+6d zSR=kcXoW2QX(Ob*;nE2*UkEW2=|3*+B;x0=9`QF26J9ODipQ8c0ptAGKm6O|(Z?*@ zK}p=x5)g}5EJLCXP>bt}M_BwSt|!Z#g{v@m>$od8<+R2(B5K5hOkN-x{|VNTMvxjU zc?7l5QbwfI`6&{(N43XOKZ}A(KPWb{EFIzcAtV7-WC2tGZYTn1$5=f?inlseMx$9s SYidTK)409+*dSjFn|}f0DBMT@ literal 0 HcmV?d00001 diff --git a/target/classes/org/example/entity/Status.class b/target/classes/org/example/entity/Status.class new file mode 100644 index 0000000000000000000000000000000000000000..f2a7406791c6c0c9d692a10e0b359d93998dddf9 GIT binary patch literal 1079 zcmaJ*)@#vezo+JgHa6{2cwkd#X)WVpkx>v zzoKClF$QI|v0JH^42H$mQ}U~bT0_Uzh+4-?QCLVX^{GAo4G1SjJ6; zP|zU1Gh>pyc>H1_aQ(h znM<7HCm@#M{vk$?@HEzlpP^`lPX1GenE8sUXNZ5Mh#^b=A#o=WKZW%%e-ij5v<4}P(*Mi hC<65qtH+q(t&TRM(k!%VYDS{BQG1WDNmu||e*mMWB>MqMu z!FpU5F19kundyWRmm50>pR{N#Sy~C9IQ1GwGNzE^n|6 zMC?kd9OF7+Ro2{?O&l2Hv#f0pAxA>SS%Iln!#Tv-ZmCzNdS>41ADUz z8gQ;C84JKd5~b4A;U9}5TulCZUg2hksz zRI?4CwG_$&utGvp3vu(Rx8@uJzLHgHg9a66ubhK;ObpN}xljQ>Dtpk;w;%|Xwe;0! z3p8IJHcZLQvKHQ;szjq!tE4R(EW^ZUPsr;5R7@n8DM&aRqR^nj_-KLaON%!H)xI@3 zN~qawRB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z*hb+&elg51VXl!Sh7f6kh&-h8VmjhF&gsaqRTSV)Yz`&9$vN{lA4>d`sA7&@kvMi2 zFV5t$_i%_}a%;8j^4Bm&vU`Y~Z_wwo2I*d0AXUDJV{iGS6G-B1-bH;E3w?QZfxGfi tmXHpz#KnPkFY@U-PoQ_?-{|cn)CB46`w#RkJr%u6q})u;q>u;}{sA03Y;phq literal 0 HcmV?d00001 diff --git a/target/test-classes/MainTest.class b/target/test-classes/MainTest.class new file mode 100644 index 0000000000000000000000000000000000000000..12bbc3da374fd64e7f77ba9052515fdce77b46ec GIT binary patch literal 6483 zcmb_g349dQ8UMdzm)&e85EcxENLW#U5O6uv3IS|@0KrW-0-*tqPBxQdaI?G2%pzb9 zuUfTQTdP)k+1s8{s9ajDt=LxWeINF)C%s#HTU+~oZ)SF9!v^`a{V6-|d+&SS@&AtZ zUY`8-gO31MCZ@+wh3W`G8p0SSP`^Xpr6)6bb||^Ne}|EF1ja2jv!=6Lpn7&oZv;_+ zDLHE>Y3$ZV@);v(WF6DlliaM^S40t`gmsjVSeeUYxZBKS?I<*X$y+VcF%l`$b`qUg z$FK(Vv=PO4N^Q?(Yfz7g5yUl2!eoKQ3i5j#-6_}t(a!G6H*V?J(jm~48k4WB1`U`J z!RZ>XQxUq^*EN99cnwJnF?08 zezl!ccS~;#rXvx-nHpx`EP~Lbo7v5V&FF+30>6NmRgxfs(iX)z0+U?)dyD}567^Xc zW=qJU?L9r6Yq~pDN#N#aXqBi{cS(9W=4m)rs#UrcMlruAuS?Gd!?}=qR^{ zFJ*+*cCJ|~g}g+=g+(EYB3L3YQK49H%uI5vZV%JA7#5>iaxc@c92e0p=^hv8;RF|A z#mVH0<)p6B#f&xL?0LsI4u||H>2BHwn+_ZG^`D3SSTmgX}CBzNjtkL zXODz-mG0;SOK@ofmua{hFDJaEl=ei_Q`#ycozX30V6|yv z2Klr@nrH+5y8(TV`JNf+#2>lDBfQvqUjSYw}(dMlsA*W2-8U zVF#{=AfsUfS+<*!Wo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AXiW5(nI=pLtEhEz<^- zPq$+{?%-K{Cr|9V_=l0Z6)p{~HZRv^AR(rR(|JRYr6?~j?o1;`qsnfoGQCPPk+Djg Sp_a#U<2159za1hin*ReQL(Gc+ literal 0 HcmV?d00001 diff --git a/target/test-classes/ResultAnalyzer$TestResultStatus.class b/target/test-classes/ResultAnalyzer$TestResultStatus.class new file mode 100644 index 0000000000000000000000000000000000000000..cb4cb658ddb038aecce0442a187bbed0927cf8c3 GIT binary patch literal 1259 zcmah}YfsZq7=F%f?P`HJF2V%4ICTT%BFtMSGRBBY8b~P2EPg7pVoB+ewj_v`n!p8#Ism4pbx^q%FnoS@{I&c{!dm)*DgpaU6! z8MOQ)7-A~oNH8eILAhKpjO_!RVOHme?*;^$s+s zVu(ZXR@EqNhTu&VX$+HZwpP*)Dh9*c+rCK^jABf}u!>t4XNWhPrfV^b zrhBxsdw6U$0!={%wF8er{Z`75)|(B}shOV5YR(a`I6P!Xy;bIF5DIi8DFeUu} zt4G_28ueHkl2MPhY4G(#8w1AmUSvE$Aq?>*4559e200LyA}58J0rr0TWc~IEC$0{1nd!i{Lq4h*P6KH5xT}Flboc$ov7kD-7uX literal 0 HcmV?d00001 diff --git a/target/test-classes/ResultAnalyzer.class b/target/test-classes/ResultAnalyzer.class new file mode 100644 index 0000000000000000000000000000000000000000..982e7d1f777834b3a61f599b66dbb1b0c327fa8d GIT binary patch literal 4663 zcmb_g`&$&(8GZ*AW?4p55{*c!p_&LNte^&Asj@7f-~xt4h^e^@!>|ktJL}A>O4>BN z#?)TY^xoS0&E8vWvS?_N^p>{i{r~CH_B}JpvdeCy&C_3Y&Ybzq`+evAZs+V9|9bfq z0Pn;lpk7kLrkYBI$7dFF&6QByYorYKgoMiGmMIxQ3HNwH8P_nw zQQKCR)XTU>!M)faVQ(?W{>ePV8bWYjI1%lS4-QCZifuIDeZPVxF)c^?$0sHS2gKYy1^dNZ z^-y$})(OoIDmZ{rb*XZHr*4{tPF8eNeO$3a5u_& zun#Hd!f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e20df3b0fd5f827 Mon Sep 17 00:00:00 2001 From: KENAN TURGAY <113790412+kenanturgay@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:57:48 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 52a1a75..95326bf 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,8 @@ -# Java Sets -### Proje Kurulumu -Projeyi öncelikle forklayın ve clone edin. -Daha sonra projeyi IntellijIDEA kullanarak açınız. README.md dosyasını dikkatli bir şekilde okuyarak istenenleri yapmaya çalışın. -Proje sayımız ilerledikçe proje yönetimimizi kolaylaştırmak adına projelerimizi belli klasör kalıplarında saklamak işimizi kolaylaştırmak adına iyi bir alışkanlıktır. -Örnek bir Lokasyon: Workintech/Sprint_1/Etud. +# Hedeflerimiz: -### Hedeflerimiz: - -### 1-)Set Challenge +## 1-)Set Challenge * org.example.entity paketi altında İki tane sınıfımız olucak. ```Task``` ve ```TaskData``` * ```Task``` sınıfı içerisinde 5 tane ```instance variable``` olmalı. ```project``` => string ```description``` => string ```assignee``` => string @@ -19,7 +12,7 @@ Proje sayımız ilerledikçe proje yönetimimizi kolaylaştırmak adına projele * TaskData sınıfı 4 tane değişkene sahip olmalı ```annsTasks => Set``` ```bobsTasks => Set``` ```carolsTasks => Set``` ```unassignedTasks => Set``` Bu 4 değerde constructor vasıtasıyla set edilebilmeli. * TaskData sınıfı ```getTasks()``` adlı bir metoda sahip olmalı. method parametre olarak bir String almalı. Bu 4 değerden herhangi birini alabilir. ("ann", "bob", "carol", "all") Metodun dönüş değeri ```Set``` olmalı. -### Senaryo +## Senaryo * Şöyle bir senaryomuz var. Sen şirketteki yeni bir yöneticisin ve ekibinde 3 tane çalışanın var. * Ann, Bob, Carol 3'ü de senin çalışanların. @@ -38,7 +31,7 @@ Proje sayımız ilerledikçe proje yönetimimizi kolaylaştırmak adına projele * ```getIntersect()``` metodu iki tane set alır ve aralarındaki kesişim kümesini bulup döner. * ```getDifference()``` metodu iki tane set alır ve ikinci set içerisindeki verileri ilk set içerisindeki verilerden çıkarır. -### 2-) Challenge +## 2-) Challenge * Elimizde aşağıdaki gibi bir text mevcut. * org.example.entity paketi altında StringSet adında bir sınıf tanımlayın.