Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "interactive"
"java.configuration.updateBuildConfiguration": "interactive",
"java.dependency.syncWithFolderExplorer": true
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN mvn package -DskipTests
FROM openjdk:17-jdk-slim
RUN apt-get update && apt-get install -y maven && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build /app/target/GoofyFiles-0.0.1-SNAPSHOT.jar app.jar
COPY --from=build /app/target/GoofyDocs-0.0.1-SNAPSHOT.jar app.jar

EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ compile:

update:
docker-compose exec app mvn clean package -f /source/pom.xml && \
docker-compose exec app cp /source/target/GoofyFiles-0.0.1-SNAPSHOT.jar /app/app.jar && \
docker-compose exec app cp /source/target/GoofyDocs-0.0.1-SNAPSHOT.jar /app/app.jar && \
docker-compose restart app

# Exécuter les tests de performance
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GoofyFiles
# GoofyDocs

**GoofyFiles** est un projet Java (Spring Boot) visant à implémenter un système de découpage intelligent de fichiers.
**GoofyDocs** est un projet Java (Spring Boot) visant à implémenter un système de découpage intelligent de fichiers.
Les objectifs du projet sont :

- Découper dynamiquement les fichiers (Content-Defined Chunking avec Rabin Fingerprinting)
Expand Down Expand Up @@ -44,7 +44,7 @@ Les objectifs du projet sont :

1. **Construire et lancer les conteneurs :**

- Depuis la racine du projet (`GoofyFiles`), exécute :
- Depuis la racine du projet (`GoofyDocs`), exécute :
```bash
docker-compose up --build -d
```
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ services:
context: .
dockerfile: Dockerfile
volumes:
- ./java:/source # Monte le code source dans /source
- ./java:/source # Monte le code source dans /source
ports:
- "8080:8080"
- '8080:8080'
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/goofyfilesdb
SPRING_DATASOURCE_USERNAME: postgres
Expand All @@ -21,7 +21,7 @@ services:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
- '5432:5432'
volumes:
- postgres-data:/var/lib/postgresql/data

Expand Down
6 changes: 3 additions & 3 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.goofy</groupId>
<artifactId>GoofyFiles</artifactId>
<artifactId>GoofyDocs</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>GoofyFiles</name>
<description>GoofyFiles</description>
<name>GoofyDocs</name>
<description>GoofyDocs</description>
<url/>
<licenses>
<license/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.goofy.GoofyFiles;
package com.goofy.GoofyDocs;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand All @@ -7,10 +7,10 @@

@SpringBootApplication
@RestController
public class GoofyFilesApplication {
public class GoofyDocsApplication {

public static void main(String[] args) {
SpringApplication.run(GoofyFilesApplication.class, args);
SpringApplication.run(GoofyDocsApplication.class, args);
}

// Mapping de la racine pour afficher "Hello, World!"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.goofy.GoofyFiles.chunking;
package com.goofy.GoofyDocs.chunking;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.goofy.GoofyFiles.chunking;
package com.goofy.GoofyDocs.chunking;

import java.io.ByteArrayOutputStream;
import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.goofy.GoofyFiles.chunking;
package com.goofy.GoofyDocs.chunking;

import org.rabinfingerprint.fingerprint.RabinFingerprintLong;
import org.rabinfingerprint.polynomial.Polynomial;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.goofy.GoofyFiles.compression;
package com.goofy.GoofyDocs.compression;

import org.springframework.stereotype.Service;
import org.xerial.snappy.Snappy;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.goofy.GoofyFiles.controller.api;
package com.goofy.GoofyDocs.controller.api;

import java.io.File;
import java.io.IOException;
Expand All @@ -13,8 +13,8 @@
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import com.goofy.GoofyFiles.chunking.Chunk;
import com.goofy.GoofyFiles.chunking.ChunkingService;
import com.goofy.GoofyDocs.chunking.Chunk;
import com.goofy.GoofyDocs.chunking.ChunkingService;

@RestController
@RequestMapping("api/chunking")
Expand Down
2 changes: 1 addition & 1 deletion java/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring.application.name=GoofyFiles
spring.application.name=GoofyDocs
spring.datasource.url=${SPRING_DATASOURCE_URL}
spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.goofy.GoofyFiles;
package com.goofy.GoofyDocs;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class GoofyFilesApplicationTests {
class GoofyDocsApplicationTests {

@Test
void contextLoads() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.goofy.GoofyFiles.chunking;
package com.goofy.GoofyDocs.chunking;

import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand All @@ -14,6 +14,9 @@
import org.junit.jupiter.api.Test;
import org.springframework.util.StopWatch;

import com.goofy.GoofyDocs.chunking.Chunk;
import com.goofy.GoofyDocs.chunking.ChunkingService;

public class ChunkingPerformanceTest {

private ChunkingService chunkingService;
Expand Down