Skip to content

Commit

Permalink
Translating sentences
Browse files Browse the repository at this point in the history
Translating sentences from French to English
  • Loading branch information
EnoGame29 committed Jan 23, 2025
1 parent 382e637 commit a198fad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#include <algorithm>
#include <iostream>

// Constructeur par défaut
// Constructor by default
Graph::Graph() : adjList() {}

// Ajouter une arête au graphe
// Add an edge to the graph
void Graph::add_edge(int source, int target, int weight) {
if (source >= static_cast<int>(adjList.size()) || target >= static_cast<int>(adjList.size())) {
adjList.resize(std::max(source, target) + 1);
Expand All @@ -17,7 +17,7 @@ void Graph::add_edge(int source, int target, int weight) {
adjList[target].emplace_back(source, weight);
}

// Trouver le chemin le plus court entre deux nœuds
// Find the shortest path between two nodes
std::vector<int> Graph::shortest_path(int source, int target, int& totalTime) {
constexpr int INF = std::numeric_limits<int>::max();

Expand Down
10 changes: 5 additions & 5 deletions src/includes/preprocessing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#include <unordered_set>

/**
* @brief Prétraite les données d'un fichier CSV et les stocke dans un graphe.
* @brief Preprocess the data from a CSV file and store them in a graph.
*
* @param filePath Chemin du fichier CSV.
* @param maxLines Nombre maximum de lignes à traiter (0 = toutes les lignes).
* @param graph Référence au graphe dans lequel les données sont stockées.
* @return true si le prétraitement est réussi, false sinon.
* @param filePath Path to the CSV file.
* @param maxLines Maximum number of lines to process (0 = all lines).
* @param graph Reference to the graph in which the data are stored.
* @return true if the preprocessing is successful, false otherwise.
*/
bool preprocess_data(const std::string& filePath, int maxLines, Graph& graph);

Expand Down
2 changes: 1 addition & 1 deletion src/includes/verification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ for this this code I use this different includes:
#include <vector>
#include <string>

// Macros pour obfuscation
// Macros for obfuscation
#define SECRET_DELIMITER ;
#define QPS SECRET_DELIMITER

Expand Down

0 comments on commit a198fad

Please sign in to comment.