From c506bb5de4eeb2149bda998e580cc0933137d093 Mon Sep 17 00:00:00 2001 From: IAGUILAR Date: Sun, 25 Apr 2021 13:51:05 -0500 Subject: [PATCH 1/3] problem solved --- .idea/.gitignore | 3 + .idea/compiler.xml | 16 +++ .idea/jarRepositories.xml | 20 ++++ .idea/libraries/Maven__asm_asm_3_1.xml | 13 ++ .../Maven__com_google_guava_guava_16_0.xml | 13 ++ .../Maven__com_sun_jersey_jersey_core_1_8.xml | 13 ++ .../Maven__com_sun_jersey_jersey_json_1_8.xml | 13 ++ ...aven__com_sun_jersey_jersey_server_1_8.xml | 13 ++ ...en__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml | 13 ++ ...com_thoughtworks_xstream_xstream_1_4_4.xml | 13 ++ ...mons_beanutils_commons_beanutils_1_7_0.xml | 13 ++ ...beanutils_commons_beanutils_core_1_8_0.xml | 13 ++ .../Maven__commons_cli_commons_cli_1_2.xml | 13 ++ ...Maven__commons_codec_commons_codec_1_4.xml | 13 ++ ..._collections_commons_collections_3_2_1.xml | 13 ++ ...onfiguration_commons_configuration_1_6.xml | 13 ++ ..._commons_digester_commons_digester_1_8.xml | 13 ++ .../Maven__commons_el_commons_el_1_0.xml | 13 ++ ...ns_httpclient_commons_httpclient_3_0_1.xml | 13 ++ .../Maven__commons_io_commons_io_2_1.xml | 13 ++ .../Maven__commons_lang_commons_lang_2_4.xml | 13 ++ ..._commons_logging_commons_logging_1_0_3.xml | 13 ++ .../Maven__commons_net_commons_net_1_4_1.xml | 13 ++ ...Maven__javax_activation_activation_1_1.xml | 13 ++ .../Maven__javax_xml_bind_jaxb_api_2_2_2.xml | 13 ++ ...Maven__javax_xml_stream_stax_api_1_0_2.xml | 13 ++ .idea/libraries/Maven__junit_junit_4_7.xml | 13 ++ ...__org_apache_commons_commons_lang3_3_1.xml | 13 ++ ...__org_apache_commons_commons_math3_3_2.xml | 13 ++ ...n__org_apache_commons_commons_math_2_1.xml | 13 ++ ...n__org_apache_hadoop_hadoop_core_1_2_1.xml | 13 ++ ...e_lucene_lucene_analyzers_common_4_6_1.xml | 13 ++ ...n__org_apache_lucene_lucene_core_4_6_1.xml | 13 ++ ..._mahout_commons_commons_cli_2_0_mahout.xml | 13 ++ ...ven__org_apache_mahout_mahout_core_0_9.xml | 13 ++ ...ven__org_apache_mahout_mahout_math_0_9.xml | 13 ++ ...org_apache_solr_solr_commons_csv_3_5_0.xml | 13 ++ ...dehaus_jackson_jackson_core_asl_1_9_12.xml | 13 ++ ...g_codehaus_jackson_jackson_jaxrs_1_7_1.xml | 13 ++ ...haus_jackson_jackson_mapper_asl_1_9_12.xml | 13 ++ ..._org_codehaus_jackson_jackson_xc_1_7_1.xml | 13 ++ ...en__org_codehaus_jettison_jettison_1_1.xml | 13 ++ .../Maven__org_slf4j_slf4j_api_1_7_5.xml | 13 ++ .../Maven__org_slf4j_slf4j_simple_1_7_30.xml | 13 ++ .../libraries/Maven__stax_stax_api_1_0_1.xml | 13 ++ .../Maven__xmlpull_xmlpull_1_1_3_1.xml | 13 ++ .../libraries/Maven__xpp3_xpp3_min_1_1_4c.xml | 13 ++ .idea/misc.xml | 11 ++ .idea/modules.xml | 8 ++ .idea/vcs.xml | 6 + big-data.iml | 57 +++++++++ pom.xml | 19 ++- .../recommendation/MovieRecommender.java | 111 ++++++++++++++++++ .../recommendation/MovieRecommenderTest.java | 4 +- .../recommendation/MovieRecommender.class | Bin 0 -> 5710 bytes .../recommendation/MovieRecommenderTest.class | Bin 0 -> 1565 bytes 56 files changed, 825 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/libraries/Maven__asm_asm_3_1.xml create mode 100644 .idea/libraries/Maven__com_google_guava_guava_16_0.xml create mode 100644 .idea/libraries/Maven__com_sun_jersey_jersey_core_1_8.xml create mode 100644 .idea/libraries/Maven__com_sun_jersey_jersey_json_1_8.xml create mode 100644 .idea/libraries/Maven__com_sun_jersey_jersey_server_1_8.xml create mode 100644 .idea/libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml create mode 100644 .idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_4.xml create mode 100644 .idea/libraries/Maven__commons_beanutils_commons_beanutils_1_7_0.xml create mode 100644 .idea/libraries/Maven__commons_beanutils_commons_beanutils_core_1_8_0.xml create mode 100644 .idea/libraries/Maven__commons_cli_commons_cli_1_2.xml create mode 100644 .idea/libraries/Maven__commons_codec_commons_codec_1_4.xml create mode 100644 .idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml create mode 100644 .idea/libraries/Maven__commons_configuration_commons_configuration_1_6.xml create mode 100644 .idea/libraries/Maven__commons_digester_commons_digester_1_8.xml create mode 100644 .idea/libraries/Maven__commons_el_commons_el_1_0.xml create mode 100644 .idea/libraries/Maven__commons_httpclient_commons_httpclient_3_0_1.xml create mode 100644 .idea/libraries/Maven__commons_io_commons_io_2_1.xml create mode 100644 .idea/libraries/Maven__commons_lang_commons_lang_2_4.xml create mode 100644 .idea/libraries/Maven__commons_logging_commons_logging_1_0_3.xml create mode 100644 .idea/libraries/Maven__commons_net_commons_net_1_4_1.xml create mode 100644 .idea/libraries/Maven__javax_activation_activation_1_1.xml create mode 100644 .idea/libraries/Maven__javax_xml_bind_jaxb_api_2_2_2.xml create mode 100644 .idea/libraries/Maven__javax_xml_stream_stax_api_1_0_2.xml create mode 100644 .idea/libraries/Maven__junit_junit_4_7.xml create mode 100644 .idea/libraries/Maven__org_apache_commons_commons_lang3_3_1.xml create mode 100644 .idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml create mode 100644 .idea/libraries/Maven__org_apache_commons_commons_math_2_1.xml create mode 100644 .idea/libraries/Maven__org_apache_hadoop_hadoop_core_1_2_1.xml create mode 100644 .idea/libraries/Maven__org_apache_lucene_lucene_analyzers_common_4_6_1.xml create mode 100644 .idea/libraries/Maven__org_apache_lucene_lucene_core_4_6_1.xml create mode 100644 .idea/libraries/Maven__org_apache_mahout_commons_commons_cli_2_0_mahout.xml create mode 100644 .idea/libraries/Maven__org_apache_mahout_mahout_core_0_9.xml create mode 100644 .idea/libraries/Maven__org_apache_mahout_mahout_math_0_9.xml create mode 100644 .idea/libraries/Maven__org_apache_solr_solr_commons_csv_3_5_0.xml create mode 100644 .idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_12.xml create mode 100644 .idea/libraries/Maven__org_codehaus_jackson_jackson_jaxrs_1_7_1.xml create mode 100644 .idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_12.xml create mode 100644 .idea/libraries/Maven__org_codehaus_jackson_jackson_xc_1_7_1.xml create mode 100644 .idea/libraries/Maven__org_codehaus_jettison_jettison_1_1.xml create mode 100644 .idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml create mode 100644 .idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_30.xml create mode 100644 .idea/libraries/Maven__stax_stax_api_1_0_1.xml create mode 100644 .idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml create mode 100644 .idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 big-data.iml create mode 100644 src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java create mode 100644 target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class create mode 100644 target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..38656ed --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__asm_asm_3_1.xml b/.idea/libraries/Maven__asm_asm_3_1.xml new file mode 100644 index 0000000..3386f10 --- /dev/null +++ b/.idea/libraries/Maven__asm_asm_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_google_guava_guava_16_0.xml b/.idea/libraries/Maven__com_google_guava_guava_16_0.xml new file mode 100644 index 0000000..91cff2f --- /dev/null +++ b/.idea/libraries/Maven__com_google_guava_guava_16_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_jersey_jersey_core_1_8.xml b/.idea/libraries/Maven__com_sun_jersey_jersey_core_1_8.xml new file mode 100644 index 0000000..bf486c9 --- /dev/null +++ b/.idea/libraries/Maven__com_sun_jersey_jersey_core_1_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_jersey_jersey_json_1_8.xml b/.idea/libraries/Maven__com_sun_jersey_jersey_json_1_8.xml new file mode 100644 index 0000000..ab01cdd --- /dev/null +++ b/.idea/libraries/Maven__com_sun_jersey_jersey_json_1_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_jersey_jersey_server_1_8.xml b/.idea/libraries/Maven__com_sun_jersey_jersey_server_1_8.xml new file mode 100644 index 0000000..e7e8ba0 --- /dev/null +++ b/.idea/libraries/Maven__com_sun_jersey_jersey_server_1_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml b/.idea/libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml new file mode 100644 index 0000000..1165a3b --- /dev/null +++ b/.idea/libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_4.xml b/.idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_4.xml new file mode 100644 index 0000000..2c3025b --- /dev/null +++ b/.idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_7_0.xml b/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_7_0.xml new file mode 100644 index 0000000..1cb64ed --- /dev/null +++ b/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_7_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_beanutils_commons_beanutils_core_1_8_0.xml b/.idea/libraries/Maven__commons_beanutils_commons_beanutils_core_1_8_0.xml new file mode 100644 index 0000000..3fda2c0 --- /dev/null +++ b/.idea/libraries/Maven__commons_beanutils_commons_beanutils_core_1_8_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_cli_commons_cli_1_2.xml b/.idea/libraries/Maven__commons_cli_commons_cli_1_2.xml new file mode 100644 index 0000000..cec2493 --- /dev/null +++ b/.idea/libraries/Maven__commons_cli_commons_cli_1_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_codec_commons_codec_1_4.xml b/.idea/libraries/Maven__commons_codec_commons_codec_1_4.xml new file mode 100644 index 0000000..2b149c4 --- /dev/null +++ b/.idea/libraries/Maven__commons_codec_commons_codec_1_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml b/.idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml new file mode 100644 index 0000000..3caee7e --- /dev/null +++ b/.idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_configuration_commons_configuration_1_6.xml b/.idea/libraries/Maven__commons_configuration_commons_configuration_1_6.xml new file mode 100644 index 0000000..ae96781 --- /dev/null +++ b/.idea/libraries/Maven__commons_configuration_commons_configuration_1_6.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_digester_commons_digester_1_8.xml b/.idea/libraries/Maven__commons_digester_commons_digester_1_8.xml new file mode 100644 index 0000000..49f1def --- /dev/null +++ b/.idea/libraries/Maven__commons_digester_commons_digester_1_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_el_commons_el_1_0.xml b/.idea/libraries/Maven__commons_el_commons_el_1_0.xml new file mode 100644 index 0000000..598d1b0 --- /dev/null +++ b/.idea/libraries/Maven__commons_el_commons_el_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_0_1.xml b/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_0_1.xml new file mode 100644 index 0000000..f040f16 --- /dev/null +++ b/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_io_commons_io_2_1.xml b/.idea/libraries/Maven__commons_io_commons_io_2_1.xml new file mode 100644 index 0000000..3b78142 --- /dev/null +++ b/.idea/libraries/Maven__commons_io_commons_io_2_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_lang_commons_lang_2_4.xml b/.idea/libraries/Maven__commons_lang_commons_lang_2_4.xml new file mode 100644 index 0000000..5e8b8d3 --- /dev/null +++ b/.idea/libraries/Maven__commons_lang_commons_lang_2_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_logging_commons_logging_1_0_3.xml b/.idea/libraries/Maven__commons_logging_commons_logging_1_0_3.xml new file mode 100644 index 0000000..e20ca3a --- /dev/null +++ b/.idea/libraries/Maven__commons_logging_commons_logging_1_0_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_net_commons_net_1_4_1.xml b/.idea/libraries/Maven__commons_net_commons_net_1_4_1.xml new file mode 100644 index 0000000..7fb71b5 --- /dev/null +++ b/.idea/libraries/Maven__commons_net_commons_net_1_4_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_activation_activation_1_1.xml b/.idea/libraries/Maven__javax_activation_activation_1_1.xml new file mode 100644 index 0000000..180d587 --- /dev/null +++ b/.idea/libraries/Maven__javax_activation_activation_1_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_2_2.xml b/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_2_2.xml new file mode 100644 index 0000000..a3054d2 --- /dev/null +++ b/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_2_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_xml_stream_stax_api_1_0_2.xml b/.idea/libraries/Maven__javax_xml_stream_stax_api_1_0_2.xml new file mode 100644 index 0000000..2a4dd7a --- /dev/null +++ b/.idea/libraries/Maven__javax_xml_stream_stax_api_1_0_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__junit_junit_4_7.xml b/.idea/libraries/Maven__junit_junit_4_7.xml new file mode 100644 index 0000000..4402995 --- /dev/null +++ b/.idea/libraries/Maven__junit_junit_4_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_1.xml b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_1.xml new file mode 100644 index 0000000..32bfe3b --- /dev/null +++ b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml b/.idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml new file mode 100644 index 0000000..dde81ab --- /dev/null +++ b/.idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_math_2_1.xml b/.idea/libraries/Maven__org_apache_commons_commons_math_2_1.xml new file mode 100644 index 0000000..eaa8a65 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_commons_commons_math_2_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_hadoop_hadoop_core_1_2_1.xml b/.idea/libraries/Maven__org_apache_hadoop_hadoop_core_1_2_1.xml new file mode 100644 index 0000000..cd8023f --- /dev/null +++ b/.idea/libraries/Maven__org_apache_hadoop_hadoop_core_1_2_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_lucene_lucene_analyzers_common_4_6_1.xml b/.idea/libraries/Maven__org_apache_lucene_lucene_analyzers_common_4_6_1.xml new file mode 100644 index 0000000..2717cd6 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_lucene_lucene_analyzers_common_4_6_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_lucene_lucene_core_4_6_1.xml b/.idea/libraries/Maven__org_apache_lucene_lucene_core_4_6_1.xml new file mode 100644 index 0000000..66fc4a9 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_lucene_lucene_core_4_6_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_mahout_commons_commons_cli_2_0_mahout.xml b/.idea/libraries/Maven__org_apache_mahout_commons_commons_cli_2_0_mahout.xml new file mode 100644 index 0000000..c672cac --- /dev/null +++ b/.idea/libraries/Maven__org_apache_mahout_commons_commons_cli_2_0_mahout.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_mahout_mahout_core_0_9.xml b/.idea/libraries/Maven__org_apache_mahout_mahout_core_0_9.xml new file mode 100644 index 0000000..79debcc --- /dev/null +++ b/.idea/libraries/Maven__org_apache_mahout_mahout_core_0_9.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_mahout_mahout_math_0_9.xml b/.idea/libraries/Maven__org_apache_mahout_mahout_math_0_9.xml new file mode 100644 index 0000000..98bd640 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_mahout_mahout_math_0_9.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_solr_solr_commons_csv_3_5_0.xml b/.idea/libraries/Maven__org_apache_solr_solr_commons_csv_3_5_0.xml new file mode 100644 index 0000000..36db039 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_solr_solr_commons_csv_3_5_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_12.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_12.xml new file mode 100644 index 0000000..a02acc0 --- /dev/null +++ b/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_jaxrs_1_7_1.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_jaxrs_1_7_1.xml new file mode 100644 index 0000000..9039684 --- /dev/null +++ b/.idea/libraries/Maven__org_codehaus_jackson_jackson_jaxrs_1_7_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_12.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_12.xml new file mode 100644 index 0000000..2e3cd1a --- /dev/null +++ b/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_xc_1_7_1.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_xc_1_7_1.xml new file mode 100644 index 0000000..dc10a10 --- /dev/null +++ b/.idea/libraries/Maven__org_codehaus_jackson_jackson_xc_1_7_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jettison_jettison_1_1.xml b/.idea/libraries/Maven__org_codehaus_jettison_jettison_1_1.xml new file mode 100644 index 0000000..d62802e --- /dev/null +++ b/.idea/libraries/Maven__org_codehaus_jettison_jettison_1_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml new file mode 100644 index 0000000..6f808f1 --- /dev/null +++ b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_30.xml b/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_30.xml new file mode 100644 index 0000000..e5856a0 --- /dev/null +++ b/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_30.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__stax_stax_api_1_0_1.xml b/.idea/libraries/Maven__stax_stax_api_1_0_1.xml new file mode 100644 index 0000000..0b13335 --- /dev/null +++ b/.idea/libraries/Maven__stax_stax_api_1_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml b/.idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml new file mode 100644 index 0000000..0f2d9ef --- /dev/null +++ b/.idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml b/.idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml new file mode 100644 index 0000000..6726a2d --- /dev/null +++ b/.idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..17e19eb --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..6237568 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/big-data.iml b/big-data.iml new file mode 100644 index 0000000..f267fe6 --- /dev/null +++ b/big-data.iml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 8169ff7..57a6efe 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,19 @@ nearsoft.academy big-data 1.0-SNAPSHOT - jar + + + + org.apache.maven.plugins + maven-compiler-plugin + + 11 + 11 + + + + + jar big-data http://maven.apache.org @@ -26,5 +38,10 @@ 4.7 test + + org.slf4j + slf4j-simple + 1.7.30 + diff --git a/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java b/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java new file mode 100644 index 0000000..9f2eae7 --- /dev/null +++ b/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java @@ -0,0 +1,111 @@ +package nearsoft.academy.bigdata.recommendation; + +import org.apache.commons.collections.BidiMap; +import org.apache.commons.collections.bidimap.TreeBidiMap; +import org.apache.mahout.cf.taste.common.TasteException; +import org.apache.mahout.cf.taste.impl.model.file.FileDataModel; +import org.apache.mahout.cf.taste.impl.neighborhood.ThresholdUserNeighborhood; +import org.apache.mahout.cf.taste.impl.recommender.GenericUserBasedRecommender; +import org.apache.mahout.cf.taste.impl.similarity.PearsonCorrelationSimilarity; +import org.apache.mahout.cf.taste.model.DataModel; +import org.apache.mahout.cf.taste.neighborhood.UserNeighborhood; +import org.apache.mahout.cf.taste.recommender.RecommendedItem; +import org.apache.mahout.cf.taste.recommender.UserBasedRecommender; +import org.apache.mahout.cf.taste.similarity.UserSimilarity; + +import java.io.*; +import java.util.ArrayList; +import java.util.List; + +public class MovieRecommender { + private String txtPath; + private String csvPath; + private BidiMap userIds; + private BidiMap productsIds; + private int totalReviews; + private int totalProducts; + private int totalUsers; + + public MovieRecommender(String txtPath) { + this.txtPath = txtPath; + this.csvPath = "data/movies.csv"; + this.userIds = new TreeBidiMap(); + this.productsIds = new TreeBidiMap(); + this.totalReviews = 0; + this.totalProducts = 0; + this.totalUsers = 0; + } + + public int getTotalReviews() { + return this.totalReviews; + } + + public int getTotalProducts() { + return this.totalProducts; + } + + public int getTotalUsers() { + return this.totalUsers; + } + + public List getRecommendationsForUser(String user) throws IOException, TasteException { + UserBasedRecommender recommender = createRecommender(this.csvPath); + int userKey = Integer.parseInt(userIds.get(user).toString()); + + List recommendations = recommender.recommend(userKey, 10); + List recommendedMovies = new ArrayList<>(); + String product; + for (RecommendedItem recommendation : recommendations) { + product = this.productsIds.getKey((int) recommendation.getItemID()).toString(); + recommendedMovies.add(product); + } + + return recommendedMovies; + } + + private UserBasedRecommender createRecommender(String path) throws IOException, TasteException { + DataModel model = new FileDataModel(new File(path)); + UserSimilarity similarity = new PearsonCorrelationSimilarity(model); + UserNeighborhood neighborhood = new ThresholdUserNeighborhood(0.1, similarity, model); + UserBasedRecommender recommender = new GenericUserBasedRecommender(model, neighborhood, similarity); + + return recommender; + } + + public void convertFileToCSV() throws IOException { + BufferedReader br = new BufferedReader(new FileReader(this.txtPath)); + BufferedWriter bw = new BufferedWriter(new FileWriter(this.csvPath)); + + String line; + String[] newLine = {"", "", ""}; + while((line = br.readLine()) != null) { + String[] values = line.split(": ", -1); + if(values[0].equals("review/userId")) { + if(this.userIds.get(values[1]) == null) { + this.userIds.put(values[1], this.totalUsers); + newLine[0] = this.userIds.get(values[1]).toString(); + this.totalUsers++; + } else { + newLine[0] = this.userIds.get(values[1]).toString(); + } + } + if(values[0].equals("product/productId")) { + if(this.productsIds.get(values[1]) == null) { + this.productsIds.put(values[1], this.totalProducts); + newLine[1] = this.productsIds.get(values[1]).toString(); + this.totalProducts++; + } else { + newLine[1] = this.productsIds.get(values[1]).toString(); + } + } + if(values[0].equals("review/score")) { + newLine[2] = values[1]; + bw.write(newLine[0] + "," + newLine[1] + "," + newLine[2] + '\n'); + this.totalReviews++; + } + } + br.close(); + bw.close(); + } + +} diff --git a/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.java b/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.java index 0d0b1fe..61716ca 100644 --- a/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.java +++ b/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.java @@ -15,7 +15,9 @@ public class MovieRecommenderTest { public void testDataInfo() throws IOException, TasteException { //download movies.txt.gz from // http://snap.stanford.edu/data/web-Movies.html - MovieRecommender recommender = new MovieRecommender("/path/to/movies.txt.gz"); + + MovieRecommender recommender = new MovieRecommender("data/movies.txt"); + recommender.convertFileToCSV(); assertEquals(7911684, recommender.getTotalReviews()); assertEquals(253059, recommender.getTotalProducts()); assertEquals(889176, recommender.getTotalUsers()); diff --git a/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class b/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class new file mode 100644 index 0000000000000000000000000000000000000000..66b145481b8e5e418ba9b98937b538af9dbaf598 GIT binary patch literal 5710 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 Pk)D|3I?6R`J?{Gtz|$d( literal 0 HcmV?d00001 diff --git a/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class b/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class new file mode 100644 index 0000000000000000000000000000000000000000..85f84791b3fd2407fce9d0fd0addda89c9d7ecd2 GIT binary patch literal 1565 zcmbVMTUQfF5dJy|B+d?k;iBMPL{Yg(2Si{6aS^!$Cjv=8d2EIz8BS(~o#`Mxd;9_Z zlzmZl_ndw7VSj_a#bfnM0xruFdFZ-yRn1plRp;NYfBges8f61FFqQ_-AZH+faeYj* z&>e96XG&WS4NT%u>`H!lr(ILA)%M}Fwx%}9vhg&oKAR>!F&c!)A%io1%}o+ z$8*#?LvnCvn<2I6?@5Ms%kkvPy1Ofbve>PWCu{k(sBMeD(RRa`QdK8pn72GBg3#Yr zT-ahyx^MZeQ`r+r@IczW>q?Id$M<-_KXPQT>7(K@RI?1GBKe%+^WMJC@WW}A3>Y3? zx;j;EKP?pjAg~?QfjAPpuACaToapmC|LyJVVY9!1bFp)=T@zk~msH?*mDzdvh_Q5R z%R}8@n8vd-78!brbx%32+;&2T_*(EhU!5WFg9<;W6Yso1fKl@6fi0IEO?B@@ERAW@ zCVJ7wFmqYDiH~S1t{y`;rjC`a_}s)2`b;ciC5=@Rd90auffW-LRv4}>j8BfQZcJJ` z8?OqbqKN`tQqRwFx!lD1^v=vy8tW!DuxX-*QsX8!xwu(gZW>b$U(HM~%v~0@W{D;j z4K5;oefL1x@D6VC2 zZ7nL=tgsRIdv#mURa?`wMVVyxl70G4;>B6^1AWOba1qvXn@U@G>kN-86mb!Rd~J)C zuF$X;(p3@Wm2??~zpojyJ3D0Q3RU6S0rAfpX?ow|w#rpOJ&s(Ed2!; Date: Sun, 25 Apr 2021 14:04:54 -0500 Subject: [PATCH 2/3] Remove ignored files --- .idea/libraries/Maven__asm_asm_3_1.xml | 13 ------------- .../Maven__com_google_guava_guava_16_0.xml | 13 ------------- .../Maven__com_sun_jersey_jersey_core_1_8.xml | 13 ------------- .../Maven__com_sun_jersey_jersey_json_1_8.xml | 13 ------------- .../Maven__com_sun_jersey_jersey_server_1_8.xml | 13 ------------- ...Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml | 13 ------------- ...n__com_thoughtworks_xstream_xstream_1_4_4.xml | 13 ------------- ...commons_beanutils_commons_beanutils_1_7_0.xml | 13 ------------- ...ns_beanutils_commons_beanutils_core_1_8_0.xml | 13 ------------- .../Maven__commons_cli_commons_cli_1_2.xml | 13 ------------- .../Maven__commons_codec_commons_codec_1_4.xml | 13 ------------- ...ons_collections_commons_collections_3_2_1.xml | 13 ------------- ...s_configuration_commons_configuration_1_6.xml | 13 ------------- ...en__commons_digester_commons_digester_1_8.xml | 13 ------------- .../Maven__commons_el_commons_el_1_0.xml | 13 ------------- ...mmons_httpclient_commons_httpclient_3_0_1.xml | 13 ------------- .../Maven__commons_io_commons_io_2_1.xml | 13 ------------- .../Maven__commons_lang_commons_lang_2_4.xml | 13 ------------- ...en__commons_logging_commons_logging_1_0_3.xml | 13 ------------- .../Maven__commons_net_commons_net_1_4_1.xml | 13 ------------- .../Maven__javax_activation_activation_1_1.xml | 13 ------------- .../Maven__javax_xml_bind_jaxb_api_2_2_2.xml | 13 ------------- .../Maven__javax_xml_stream_stax_api_1_0_2.xml | 13 ------------- .idea/libraries/Maven__junit_junit_4_7.xml | 13 ------------- ...ven__org_apache_commons_commons_lang3_3_1.xml | 13 ------------- ...ven__org_apache_commons_commons_math3_3_2.xml | 13 ------------- ...aven__org_apache_commons_commons_math_2_1.xml | 13 ------------- ...aven__org_apache_hadoop_hadoop_core_1_2_1.xml | 13 ------------- ...ache_lucene_lucene_analyzers_common_4_6_1.xml | 13 ------------- ...aven__org_apache_lucene_lucene_core_4_6_1.xml | 13 ------------- ...che_mahout_commons_commons_cli_2_0_mahout.xml | 13 ------------- .../Maven__org_apache_mahout_mahout_core_0_9.xml | 13 ------------- .../Maven__org_apache_mahout_mahout_math_0_9.xml | 13 ------------- ...n__org_apache_solr_solr_commons_csv_3_5_0.xml | 13 ------------- ..._codehaus_jackson_jackson_core_asl_1_9_12.xml | 13 ------------- ..._org_codehaus_jackson_jackson_jaxrs_1_7_1.xml | 13 ------------- ...odehaus_jackson_jackson_mapper_asl_1_9_12.xml | 13 ------------- ...en__org_codehaus_jackson_jackson_xc_1_7_1.xml | 13 ------------- ...Maven__org_codehaus_jettison_jettison_1_1.xml | 13 ------------- .../Maven__org_slf4j_slf4j_api_1_7_5.xml | 13 ------------- .../Maven__org_slf4j_slf4j_simple_1_7_30.xml | 13 ------------- .idea/libraries/Maven__stax_stax_api_1_0_1.xml | 13 ------------- .../libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml | 13 ------------- .idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml | 13 ------------- .../recommendation/MovieRecommender.class | Bin 5710 -> 0 bytes .../recommendation/MovieRecommenderTest.class | Bin 1565 -> 0 bytes 46 files changed, 572 deletions(-) delete mode 100644 .idea/libraries/Maven__asm_asm_3_1.xml delete mode 100644 .idea/libraries/Maven__com_google_guava_guava_16_0.xml delete mode 100644 .idea/libraries/Maven__com_sun_jersey_jersey_core_1_8.xml delete mode 100644 .idea/libraries/Maven__com_sun_jersey_jersey_json_1_8.xml delete mode 100644 .idea/libraries/Maven__com_sun_jersey_jersey_server_1_8.xml delete mode 100644 .idea/libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml delete mode 100644 .idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_4.xml delete mode 100644 .idea/libraries/Maven__commons_beanutils_commons_beanutils_1_7_0.xml delete mode 100644 .idea/libraries/Maven__commons_beanutils_commons_beanutils_core_1_8_0.xml delete mode 100644 .idea/libraries/Maven__commons_cli_commons_cli_1_2.xml delete mode 100644 .idea/libraries/Maven__commons_codec_commons_codec_1_4.xml delete mode 100644 .idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml delete mode 100644 .idea/libraries/Maven__commons_configuration_commons_configuration_1_6.xml delete mode 100644 .idea/libraries/Maven__commons_digester_commons_digester_1_8.xml delete mode 100644 .idea/libraries/Maven__commons_el_commons_el_1_0.xml delete mode 100644 .idea/libraries/Maven__commons_httpclient_commons_httpclient_3_0_1.xml delete mode 100644 .idea/libraries/Maven__commons_io_commons_io_2_1.xml delete mode 100644 .idea/libraries/Maven__commons_lang_commons_lang_2_4.xml delete mode 100644 .idea/libraries/Maven__commons_logging_commons_logging_1_0_3.xml delete mode 100644 .idea/libraries/Maven__commons_net_commons_net_1_4_1.xml delete mode 100644 .idea/libraries/Maven__javax_activation_activation_1_1.xml delete mode 100644 .idea/libraries/Maven__javax_xml_bind_jaxb_api_2_2_2.xml delete mode 100644 .idea/libraries/Maven__javax_xml_stream_stax_api_1_0_2.xml delete mode 100644 .idea/libraries/Maven__junit_junit_4_7.xml delete mode 100644 .idea/libraries/Maven__org_apache_commons_commons_lang3_3_1.xml delete mode 100644 .idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml delete mode 100644 .idea/libraries/Maven__org_apache_commons_commons_math_2_1.xml delete mode 100644 .idea/libraries/Maven__org_apache_hadoop_hadoop_core_1_2_1.xml delete mode 100644 .idea/libraries/Maven__org_apache_lucene_lucene_analyzers_common_4_6_1.xml delete mode 100644 .idea/libraries/Maven__org_apache_lucene_lucene_core_4_6_1.xml delete mode 100644 .idea/libraries/Maven__org_apache_mahout_commons_commons_cli_2_0_mahout.xml delete mode 100644 .idea/libraries/Maven__org_apache_mahout_mahout_core_0_9.xml delete mode 100644 .idea/libraries/Maven__org_apache_mahout_mahout_math_0_9.xml delete mode 100644 .idea/libraries/Maven__org_apache_solr_solr_commons_csv_3_5_0.xml delete mode 100644 .idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_12.xml delete mode 100644 .idea/libraries/Maven__org_codehaus_jackson_jackson_jaxrs_1_7_1.xml delete mode 100644 .idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_12.xml delete mode 100644 .idea/libraries/Maven__org_codehaus_jackson_jackson_xc_1_7_1.xml delete mode 100644 .idea/libraries/Maven__org_codehaus_jettison_jettison_1_1.xml delete mode 100644 .idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml delete mode 100644 .idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_30.xml delete mode 100644 .idea/libraries/Maven__stax_stax_api_1_0_1.xml delete mode 100644 .idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml delete mode 100644 .idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml delete mode 100644 target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class delete mode 100644 target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class diff --git a/.idea/libraries/Maven__asm_asm_3_1.xml b/.idea/libraries/Maven__asm_asm_3_1.xml deleted file mode 100644 index 3386f10..0000000 --- a/.idea/libraries/Maven__asm_asm_3_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_google_guava_guava_16_0.xml b/.idea/libraries/Maven__com_google_guava_guava_16_0.xml deleted file mode 100644 index 91cff2f..0000000 --- a/.idea/libraries/Maven__com_google_guava_guava_16_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_jersey_jersey_core_1_8.xml b/.idea/libraries/Maven__com_sun_jersey_jersey_core_1_8.xml deleted file mode 100644 index bf486c9..0000000 --- a/.idea/libraries/Maven__com_sun_jersey_jersey_core_1_8.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_jersey_jersey_json_1_8.xml b/.idea/libraries/Maven__com_sun_jersey_jersey_json_1_8.xml deleted file mode 100644 index ab01cdd..0000000 --- a/.idea/libraries/Maven__com_sun_jersey_jersey_json_1_8.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_jersey_jersey_server_1_8.xml b/.idea/libraries/Maven__com_sun_jersey_jersey_server_1_8.xml deleted file mode 100644 index e7e8ba0..0000000 --- a/.idea/libraries/Maven__com_sun_jersey_jersey_server_1_8.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml b/.idea/libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml deleted file mode 100644 index 1165a3b..0000000 --- a/.idea/libraries/Maven__com_sun_xml_bind_jaxb_impl_2_2_3_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_4.xml b/.idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_4.xml deleted file mode 100644 index 2c3025b..0000000 --- a/.idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_4.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_7_0.xml b/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_7_0.xml deleted file mode 100644 index 1cb64ed..0000000 --- a/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_7_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_beanutils_commons_beanutils_core_1_8_0.xml b/.idea/libraries/Maven__commons_beanutils_commons_beanutils_core_1_8_0.xml deleted file mode 100644 index 3fda2c0..0000000 --- a/.idea/libraries/Maven__commons_beanutils_commons_beanutils_core_1_8_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_cli_commons_cli_1_2.xml b/.idea/libraries/Maven__commons_cli_commons_cli_1_2.xml deleted file mode 100644 index cec2493..0000000 --- a/.idea/libraries/Maven__commons_cli_commons_cli_1_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_codec_commons_codec_1_4.xml b/.idea/libraries/Maven__commons_codec_commons_codec_1_4.xml deleted file mode 100644 index 2b149c4..0000000 --- a/.idea/libraries/Maven__commons_codec_commons_codec_1_4.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml b/.idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml deleted file mode 100644 index 3caee7e..0000000 --- a/.idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_configuration_commons_configuration_1_6.xml b/.idea/libraries/Maven__commons_configuration_commons_configuration_1_6.xml deleted file mode 100644 index ae96781..0000000 --- a/.idea/libraries/Maven__commons_configuration_commons_configuration_1_6.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_digester_commons_digester_1_8.xml b/.idea/libraries/Maven__commons_digester_commons_digester_1_8.xml deleted file mode 100644 index 49f1def..0000000 --- a/.idea/libraries/Maven__commons_digester_commons_digester_1_8.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_el_commons_el_1_0.xml b/.idea/libraries/Maven__commons_el_commons_el_1_0.xml deleted file mode 100644 index 598d1b0..0000000 --- a/.idea/libraries/Maven__commons_el_commons_el_1_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_0_1.xml b/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_0_1.xml deleted file mode 100644 index f040f16..0000000 --- a/.idea/libraries/Maven__commons_httpclient_commons_httpclient_3_0_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_io_commons_io_2_1.xml b/.idea/libraries/Maven__commons_io_commons_io_2_1.xml deleted file mode 100644 index 3b78142..0000000 --- a/.idea/libraries/Maven__commons_io_commons_io_2_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_lang_commons_lang_2_4.xml b/.idea/libraries/Maven__commons_lang_commons_lang_2_4.xml deleted file mode 100644 index 5e8b8d3..0000000 --- a/.idea/libraries/Maven__commons_lang_commons_lang_2_4.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_logging_commons_logging_1_0_3.xml b/.idea/libraries/Maven__commons_logging_commons_logging_1_0_3.xml deleted file mode 100644 index e20ca3a..0000000 --- a/.idea/libraries/Maven__commons_logging_commons_logging_1_0_3.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_net_commons_net_1_4_1.xml b/.idea/libraries/Maven__commons_net_commons_net_1_4_1.xml deleted file mode 100644 index 7fb71b5..0000000 --- a/.idea/libraries/Maven__commons_net_commons_net_1_4_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_activation_activation_1_1.xml b/.idea/libraries/Maven__javax_activation_activation_1_1.xml deleted file mode 100644 index 180d587..0000000 --- a/.idea/libraries/Maven__javax_activation_activation_1_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_2_2.xml b/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_2_2.xml deleted file mode 100644 index a3054d2..0000000 --- a/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_2_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_xml_stream_stax_api_1_0_2.xml b/.idea/libraries/Maven__javax_xml_stream_stax_api_1_0_2.xml deleted file mode 100644 index 2a4dd7a..0000000 --- a/.idea/libraries/Maven__javax_xml_stream_stax_api_1_0_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__junit_junit_4_7.xml b/.idea/libraries/Maven__junit_junit_4_7.xml deleted file mode 100644 index 4402995..0000000 --- a/.idea/libraries/Maven__junit_junit_4_7.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_1.xml b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_1.xml deleted file mode 100644 index 32bfe3b..0000000 --- a/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml b/.idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml deleted file mode 100644 index dde81ab..0000000 --- a/.idea/libraries/Maven__org_apache_commons_commons_math3_3_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_math_2_1.xml b/.idea/libraries/Maven__org_apache_commons_commons_math_2_1.xml deleted file mode 100644 index eaa8a65..0000000 --- a/.idea/libraries/Maven__org_apache_commons_commons_math_2_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_hadoop_hadoop_core_1_2_1.xml b/.idea/libraries/Maven__org_apache_hadoop_hadoop_core_1_2_1.xml deleted file mode 100644 index cd8023f..0000000 --- a/.idea/libraries/Maven__org_apache_hadoop_hadoop_core_1_2_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_lucene_lucene_analyzers_common_4_6_1.xml b/.idea/libraries/Maven__org_apache_lucene_lucene_analyzers_common_4_6_1.xml deleted file mode 100644 index 2717cd6..0000000 --- a/.idea/libraries/Maven__org_apache_lucene_lucene_analyzers_common_4_6_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_lucene_lucene_core_4_6_1.xml b/.idea/libraries/Maven__org_apache_lucene_lucene_core_4_6_1.xml deleted file mode 100644 index 66fc4a9..0000000 --- a/.idea/libraries/Maven__org_apache_lucene_lucene_core_4_6_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_mahout_commons_commons_cli_2_0_mahout.xml b/.idea/libraries/Maven__org_apache_mahout_commons_commons_cli_2_0_mahout.xml deleted file mode 100644 index c672cac..0000000 --- a/.idea/libraries/Maven__org_apache_mahout_commons_commons_cli_2_0_mahout.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_mahout_mahout_core_0_9.xml b/.idea/libraries/Maven__org_apache_mahout_mahout_core_0_9.xml deleted file mode 100644 index 79debcc..0000000 --- a/.idea/libraries/Maven__org_apache_mahout_mahout_core_0_9.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_mahout_mahout_math_0_9.xml b/.idea/libraries/Maven__org_apache_mahout_mahout_math_0_9.xml deleted file mode 100644 index 98bd640..0000000 --- a/.idea/libraries/Maven__org_apache_mahout_mahout_math_0_9.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_solr_solr_commons_csv_3_5_0.xml b/.idea/libraries/Maven__org_apache_solr_solr_commons_csv_3_5_0.xml deleted file mode 100644 index 36db039..0000000 --- a/.idea/libraries/Maven__org_apache_solr_solr_commons_csv_3_5_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_12.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_12.xml deleted file mode 100644 index a02acc0..0000000 --- a/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_jaxrs_1_7_1.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_jaxrs_1_7_1.xml deleted file mode 100644 index 9039684..0000000 --- a/.idea/libraries/Maven__org_codehaus_jackson_jackson_jaxrs_1_7_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_12.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_12.xml deleted file mode 100644 index 2e3cd1a..0000000 --- a/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_xc_1_7_1.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_xc_1_7_1.xml deleted file mode 100644 index dc10a10..0000000 --- a/.idea/libraries/Maven__org_codehaus_jackson_jackson_xc_1_7_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jettison_jettison_1_1.xml b/.idea/libraries/Maven__org_codehaus_jettison_jettison_1_1.xml deleted file mode 100644 index d62802e..0000000 --- a/.idea/libraries/Maven__org_codehaus_jettison_jettison_1_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml deleted file mode 100644 index 6f808f1..0000000 --- a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_30.xml b/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_30.xml deleted file mode 100644 index e5856a0..0000000 --- a/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_30.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__stax_stax_api_1_0_1.xml b/.idea/libraries/Maven__stax_stax_api_1_0_1.xml deleted file mode 100644 index 0b13335..0000000 --- a/.idea/libraries/Maven__stax_stax_api_1_0_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml b/.idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml deleted file mode 100644 index 0f2d9ef..0000000 --- a/.idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml b/.idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml deleted file mode 100644 index 6726a2d..0000000 --- a/.idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class b/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class deleted file mode 100644 index 66b145481b8e5e418ba9b98937b538af9dbaf598..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5710 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 Pk)D|3I?6R`J?{Gtz|$d( diff --git a/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class b/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class deleted file mode 100644 index 85f84791b3fd2407fce9d0fd0addda89c9d7ecd2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1565 zcmbVMTUQfF5dJy|B+d?k;iBMPL{Yg(2Si{6aS^!$Cjv=8d2EIz8BS(~o#`Mxd;9_Z zlzmZl_ndw7VSj_a#bfnM0xruFdFZ-yRn1plRp;NYfBges8f61FFqQ_-AZH+faeYj* z&>e96XG&WS4NT%u>`H!lr(ILA)%M}Fwx%}9vhg&oKAR>!F&c!)A%io1%}o+ z$8*#?LvnCvn<2I6?@5Ms%kkvPy1Ofbve>PWCu{k(sBMeD(RRa`QdK8pn72GBg3#Yr zT-ahyx^MZeQ`r+r@IczW>q?Id$M<-_KXPQT>7(K@RI?1GBKe%+^WMJC@WW}A3>Y3? zx;j;EKP?pjAg~?QfjAPpuACaToapmC|LyJVVY9!1bFp)=T@zk~msH?*mDzdvh_Q5R z%R}8@n8vd-78!brbx%32+;&2T_*(EhU!5WFg9<;W6Yso1fKl@6fi0IEO?B@@ERAW@ zCVJ7wFmqYDiH~S1t{y`;rjC`a_}s)2`b;ciC5=@Rd90auffW-LRv4}>j8BfQZcJJ` z8?OqbqKN`tQqRwFx!lD1^v=vy8tW!DuxX-*QsX8!xwu(gZW>b$U(HM~%v~0@W{D;j z4K5;oefL1x@D6VC2 zZ7nL=tgsRIdv#mURa?`wMVVyxl70G4;>B6^1AWOba1qvXn@U@G>kN-86mb!Rd~J)C zuF$X;(p3@Wm2??~zpojyJ3D0Q3RU6S0rAfpX?ow|w#rpOJ&s(Ed2!; Date: Mon, 3 May 2021 18:41:03 -0500 Subject: [PATCH 3/3] changes --- .idea/.gitignore | 3 --- .idea/compiler.xml | 16 -------------- .idea/jarRepositories.xml | 20 ------------------ .idea/misc.xml | 11 ---------- .idea/modules.xml | 8 ------- .idea/vcs.xml | 6 ------ .../recommendation/MovieRecommender.java | 10 +++++++-- .../recommendation/MovieRecommenderTest.java | 1 - .../recommendation/MovieRecommender.class | Bin 0 -> 5738 bytes .../recommendation/MovieRecommenderTest.class | Bin 0 -> 1528 bytes 10 files changed, 8 insertions(+), 67 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/compiler.xml delete mode 100644 .idea/jarRepositories.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml create mode 100644 target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class create mode 100644 target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index 38656ed..0000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml deleted file mode 100644 index 712ab9d..0000000 --- a/.idea/jarRepositories.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 17e19eb..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 6237568..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java b/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java index 9f2eae7..2b055e1 100644 --- a/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java +++ b/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommender.java @@ -13,7 +13,12 @@ import org.apache.mahout.cf.taste.recommender.UserBasedRecommender; import org.apache.mahout.cf.taste.similarity.UserSimilarity; -import java.io.*; +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.FileReader; +import java.io.FileWriter; +import java.io.IOException; +import java.io.File; import java.util.ArrayList; import java.util.List; @@ -26,7 +31,7 @@ public class MovieRecommender { private int totalProducts; private int totalUsers; - public MovieRecommender(String txtPath) { + public MovieRecommender(String txtPath) throws IOException { this.txtPath = txtPath; this.csvPath = "data/movies.csv"; this.userIds = new TreeBidiMap(); @@ -34,6 +39,7 @@ public MovieRecommender(String txtPath) { this.totalReviews = 0; this.totalProducts = 0; this.totalUsers = 0; + this.convertFileToCSV(); } public int getTotalReviews() { diff --git a/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.java b/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.java index 61716ca..a6127ed 100644 --- a/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.java +++ b/src/test/java/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.java @@ -17,7 +17,6 @@ public void testDataInfo() throws IOException, TasteException { // http://snap.stanford.edu/data/web-Movies.html MovieRecommender recommender = new MovieRecommender("data/movies.txt"); - recommender.convertFileToCSV(); assertEquals(7911684, recommender.getTotalReviews()); assertEquals(253059, recommender.getTotalProducts()); assertEquals(889176, recommender.getTotalUsers()); diff --git a/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class b/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommender.class new file mode 100644 index 0000000000000000000000000000000000000000..3e96084c528f0f6e0aad84098fc65a41b16d0eb4 GIT binary patch literal 5738 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 Z@fXe!^8FM3hCkC1cXJ=+ewM#`{sUP{C{h3b literal 0 HcmV?d00001 diff --git a/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class b/target/test-classes/nearsoft/academy/bigdata/recommendation/MovieRecommenderTest.class new file mode 100644 index 0000000000000000000000000000000000000000..d142ee0074d3d3657b8a0e8dac54878a33a8b6c2 GIT binary patch literal 1528 zcmbVM>sHf15dM}HQfd$^pyCx36$IIWC}_Y|?@ke$k$@bJ>~6H{VS1Yk%m8rG;yoJ9}A#Bu2+ zKBB3(dJN&P+EcpX6B9GY8<;gQho>f?AUQCQKOdc1qCWwX>%`D=5adSu7 zy`j~iSEN8#4yQLAhB6>5rihf;S2a31}2I&`M_~(&$1r{d=j2K>|NY2y%oVPf