Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
Distributed-Search-Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tammam.alsoleman
Distributed-Search-Engine
Commits
c170d470
Commit
c170d470
authored
Jan 14, 2026
by
tammam.alsoleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit the way to read the file
parent
dd02f772
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
TFIDFCalculator.java
...in/java/com/distributed/search/logic/TFIDFCalculator.java
+1
-1
logback.xml
src/main/resources/logback.xml
+0
-0
No files found.
src/main/java/com/distributed/search/logic/TFIDFCalculator.java
View file @
c170d470
...
@@ -19,7 +19,7 @@ public class TFIDFCalculator {
...
@@ -19,7 +19,7 @@ public class TFIDFCalculator {
public
static
List
<
String
>
getWordsFromDocument
(
Path
filePath
)
{
public
static
List
<
String
>
getWordsFromDocument
(
Path
filePath
)
{
try
{
try
{
// قراءة الملف كنص UTF-8
// قراءة الملف كنص UTF-8
String
content
=
Files
.
readString
(
filePath
,
StandardCharsets
.
UTF_8
);
String
content
=
Files
.
readString
(
filePath
,
StandardCharsets
.
ISO_8859_1
);
// أحرف صغيرة
// أحرف صغيرة
content
=
content
.
toLowerCase
(
Locale
.
ROOT
);
content
=
content
.
toLowerCase
(
Locale
.
ROOT
);
...
...
src/main/resource/logback.xml
→
src/main/resource
s
/logback.xml
View file @
c170d470
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment