Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebook-unused-include-check in fbcode/fbpcs/data_processing #2420

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
facebook-unused-include-check in fbcode/fbpcs/data_processing
Summary:
Remove headers flagged by facebook-unused-include-check over fbcode.fbpcs.data_processing.

+ format and autodeps

This is a codemod. It was automatically generated and will be landed once it is approved and tests are passing in sandcastle.
You have been added as a reviewer by Sentinel or Butterfly.

Autodiff project: uif
Autodiff partition: fbcode.fbpcs.data_processing
Autodiff bookmark: ad.uif.fbcode.fbpcs.data_processing

Differential Revision: D65957914
  • Loading branch information
Gownta authored and facebook-github-bot committed Nov 20, 2024
commit 90cff2375a0dc281dc54e510f16d18e6ca26946b
Original file line number Diff line number Diff line change
@@ -20,12 +20,8 @@

#include <fbpcs/performance_tools/CostEstimation.h>
#include "fbpcf/io/api/BufferedReader.h"
#include "fbpcf/io/api/FileIOWrappers.h"
#include "fbpcf/io/api/FileReader.h"
#include "fbpcs/data_processing/attribution_id_combiner/AttributionIdSpineCombinerOptions.h"
#include "fbpcs/data_processing/attribution_id_combiner/AttributionIdSpineCombinerUtil.h"
#include "fbpcs/data_processing/attribution_id_combiner/AttributionIdSpineFileCombiner.h"
#include "fbpcs/data_processing/common/FilepathHelpers.h"

int main(int argc, char** argv) {
folly::init(&argc, &argv);
Original file line number Diff line number Diff line change
@@ -7,12 +7,9 @@

#include "AttributionIdSpineFileCombiner.h"

#include <chrono>
#include <cstdlib>
#include <filesystem>
#include <fstream>

#include <gflags/gflags.h>
#include <gtest/gtest.h>

#include <folly/Random.h>
Original file line number Diff line number Diff line change
@@ -9,15 +9,8 @@

#include <boost/algorithm/string.hpp>
#include <folly/Random.h>
#include <folly/String.h>
#include <folly/logging/xlog.h>
#include <re2/re2.h>
#include <iomanip>
#include <istream>
#include <stdexcept>
#include <unordered_map>

#include "fbpcs/data_processing/id_combiner/IdSwapMultiKey.h"

namespace pid::combiner {
MrPidAttributionIdCombiner::MrPidAttributionIdCombiner()
Original file line number Diff line number Diff line change
@@ -8,11 +8,8 @@
#include "fbpcs/data_processing/attribution_id_combiner/MrPidAttributionIdCombiner.h"

#include <folly/Random.h>
#include <gflags/gflags.h>
#include <gtest/gtest.h>
#include <chrono>
#include <cstdlib>
#include <filesystem>
#include <fstream>

#include "fbpcs/data_processing/attribution_id_combiner/AttributionIdSpineCombinerOptions.h"
Original file line number Diff line number Diff line change
@@ -7,13 +7,9 @@

#include "fbpcs/data_processing/attribution_id_combiner/PidAttributionIdCombiner.h"

#include <folly/String.h>
#include <folly/logging/xlog.h>
#include <re2/re2.h>
#include <iomanip>
#include <istream>
#include <stdexcept>
#include <unordered_map>

#include "fbpcs/data_processing/id_combiner/IdSwapMultiKey.h"

Original file line number Diff line number Diff line change
@@ -8,14 +8,10 @@
#include "fbpcs/data_processing/attribution_id_combiner/PidAttributionIdCombiner.h"

#include <folly/Random.h>
#include <gflags/gflags.h>
#include <gtest/gtest.h>
#include <chrono>
#include <cstdlib>
#include <filesystem>
#include <fstream>

#include "fbpcf/io/api/FileIOWrappers.h"
#include "fbpcs/data_processing/attribution_id_combiner/AttributionIdSpineCombinerOptions.h"
#include "fbpcs/data_processing/test_utils/FileIOTestUtils.h"

1 change: 0 additions & 1 deletion fbpcs/data_processing/lift_id_combiner/LiftStrategy.cpp
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@
#include "fbpcs/data_processing/id_combiner/DataPreparationHelpers.h"
#include "fbpcs/data_processing/id_combiner/DataValidation.h"
#include "fbpcs/data_processing/id_combiner/GroupBy.h"
#include "fbpcs/data_processing/id_combiner/IdSwapMultiKey.h"
#include "fbpcs/data_processing/id_combiner/SortIds.h"
#include "fbpcs/data_processing/id_combiner/SortIntegralValues.h"
#include "fbpcs/data_processing/lift_id_combiner/LiftIdSpineCombinerOptions.h"
Original file line number Diff line number Diff line change
@@ -11,8 +11,6 @@
#include <folly/Random.h>
#include <folly/String.h>
#include <folly/logging/xlog.h>
#include <re2/re2.h>
#include <iomanip>
#include <istream>
#include <ostream>
#include <stdexcept>
@@ -22,9 +20,7 @@
#include <vector>

#include "fbpcf/io/api/BufferedReader.h"
#include "fbpcf/io/api/FileIOWrappers.h"
#include "fbpcf/io/api/FileReader.h"
#include "fbpcs/data_processing/common/FilepathHelpers.h"
#include "fbpcs/data_processing/id_combiner/DataPreparationHelpers.h"
#include "fbpcs/data_processing/id_combiner/IdSwapMultiKey.h"
#include "fbpcs/data_processing/lift_id_combiner/LiftIdSpineCombinerOptions.h"
Original file line number Diff line number Diff line change
@@ -8,11 +8,9 @@
#include "fbpcs/data_processing/lift_id_combiner/MrPidLiftIdCombiner.h"

#include <folly/Random.h>
#include <gflags/gflags.h>
#include <gtest/gtest.h>
#include <chrono>
#include <cstdlib>
#include <filesystem>
#include <fstream>

#include "fbpcs/data_processing/lift_id_combiner/LiftIdSpineCombinerOptions.h"
7 changes: 0 additions & 7 deletions fbpcs/data_processing/lift_id_combiner/PidLiftIdCombiner.cpp
Original file line number Diff line number Diff line change
@@ -8,23 +8,16 @@
#include "fbpcs/data_processing/lift_id_combiner/PidLiftIdCombiner.h"

#include <boost/algorithm/string.hpp>
#include <folly/String.h>
#include <folly/logging/xlog.h>
#include <re2/re2.h>
#include <iomanip>
#include <istream>
#include <ostream>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <vector>

#include "fbpcf/io/api/BufferedReader.h"
#include "fbpcf/io/api/FileReader.h"
#include "fbpcs/data_processing/common/FilepathHelpers.h"
#include "fbpcs/data_processing/id_combiner/DataPreparationHelpers.h"
#include "fbpcs/data_processing/id_combiner/IdSwapMultiKey.h"
#include "fbpcs/data_processing/lift_id_combiner/LiftIdSpineCombinerOptions.h"

namespace pid::combiner {
PidLiftIdCombiner::PidLiftIdCombiner(
Original file line number Diff line number Diff line change
@@ -8,11 +8,9 @@
#include "fbpcs/data_processing/lift_id_combiner/PidLiftIdCombiner.h"

#include <folly/Random.h>
#include <gflags/gflags.h>
#include <gtest/gtest.h>
#include <chrono>
#include <cstdlib>
#include <filesystem>
#include <fstream>

#include "fbpcs/data_processing/lift_id_combiner/LiftIdSpineCombinerOptions.h"
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
#include <fstream>
#include "fbpcs/data_processing/test_utils/FileIOTestUtils.h"

#include <gflags/gflags.h>
#include <gtest/gtest.h>

using namespace ::pid::combiner;
2 changes: 0 additions & 2 deletions fbpcs/data_processing/pid_preparer/UnionPIDDataPreparer.cpp
Original file line number Diff line number Diff line change
@@ -11,11 +11,9 @@
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <memory>
#include <sstream>
#include <string>
#include <unordered_set>
#include <vector>
Original file line number Diff line number Diff line change
@@ -9,15 +9,8 @@

#include <boost/algorithm/string.hpp>
#include <folly/Random.h>
#include <folly/String.h>
#include <folly/logging/xlog.h>
#include <re2/re2.h>
#include <iomanip>
#include <istream>
#include <stdexcept>
#include <unordered_map>

#include "fbpcs/data_processing/id_combiner/IdSwapMultiKey.h"

namespace pid::combiner {
MrPidPrivateIdDfcaIdCombiner::MrPidPrivateIdDfcaIdCombiner()
Original file line number Diff line number Diff line change
@@ -7,13 +7,9 @@

#include "fbpcs/data_processing/private_id_dfca_id_combiner/PidPrivateIdDfcaIdCombiner.h"

#include <folly/String.h>
#include <folly/logging/xlog.h>
#include <re2/re2.h>
#include <iomanip>
#include <istream>
#include <stdexcept>
#include <unordered_map>

#include "fbpcs/data_processing/id_combiner/IdSwapMultiKey.h"

Original file line number Diff line number Diff line change
@@ -20,9 +20,6 @@

#include <fbpcs/performance_tools/CostEstimation.h>
#include "fbpcf/io/api/BufferedReader.h"
#include "fbpcf/io/api/FileIOWrappers.h"
#include "fbpcf/io/api/FileReader.h"
#include "fbpcs/data_processing/common/FilepathHelpers.h"
#include "fbpcs/data_processing/private_id_dfca_id_combiner/PrivateIdDfcaIdSpineCombinerOptions.h"
#include "fbpcs/data_processing/private_id_dfca_id_combiner/PrivateIdDfcaIdSpineFileCombiner.h"

Original file line number Diff line number Diff line change
@@ -7,12 +7,9 @@

#include "fbpcs/data_processing/private_id_dfca_id_combiner/PrivateIdDfcaIdSpineFileCombiner.h"

#include <chrono>
#include <cstdlib>
#include <filesystem>
#include <fstream>

#include <gflags/gflags.h>
#include <gtest/gtest.h>

#include <folly/Random.h>
Original file line number Diff line number Diff line change
@@ -13,10 +13,8 @@
#include <boost/algorithm/string.hpp>
#include "fbpcf/io/api/FileIOWrappers.h"
#include "fbpcs/data_processing/common/FilepathHelpers.h"
#include "fbpcs/data_processing/id_combiner/AddPaddingToCols.h"
#include "fbpcs/data_processing/id_combiner/DataPreparationHelpers.h"
#include "fbpcs/data_processing/id_combiner/DataValidation.h"
#include "fbpcs/data_processing/id_combiner/GroupBy.h"
#include "fbpcs/data_processing/id_combiner/SortIds.h"

namespace pid::combiner {
2 changes: 0 additions & 2 deletions fbpcs/data_processing/sharding/GenericSharder.cpp
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@
#include <filesystem>
#include <fstream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
@@ -31,7 +30,6 @@

#include <folly/DynamicConverter.h>
#include <folly/json.h>
#include "fbpcs/data_processing/common/FilepathHelpers.h"
#include "fbpcs/data_processing/common/Logging.h"
#include "folly/String.h"

6 changes: 0 additions & 6 deletions fbpcs/data_processing/sharding/HashBasedSharder.cpp
Original file line number Diff line number Diff line change
@@ -7,14 +7,8 @@

#include "fbpcs/data_processing/sharding/HashBasedSharder.h"

#include <arpa/inet.h>

#include <algorithm>
#include <filesystem>
#include <fstream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>

4 changes: 0 additions & 4 deletions fbpcs/data_processing/sharding/Sharding.cpp
Original file line number Diff line number Diff line change
@@ -9,16 +9,12 @@

#include <folly/String.h>
#include <folly/logging/xlog.h>
#include <xmmintrin.h>

#include "fbpcs/data_processing/sharding/HashBasedSharder.h"
#include "fbpcs/data_processing/sharding/RoundRobinBasedSharder.h"

#include "fbpcf/engine/util/AesPrgFactory.h"
#include "fbpcf/engine/util/util.h"
#include "fbpcf/mpc_std_lib/util/secureSamplePublicSeed.h"
#include "fbpcs/data_processing/common/FilepathHelpers.h"
#include "fbpcs/data_processing/common/Logging.h"
#include "fbpcs/data_processing/sharding/SecureRandomSharder.h"

namespace data_processing::sharder {